Fixed type mismatch for time parameter.

This commit is contained in:
Emiliana 2021-06-12 17:47:16 +02:00 • committed by GitHub
parent 9a6eb20d83
commit 8b72102583
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ namespace OpenSee {
map[key].UpdateValue(v); map[key].UpdateValue(v);
} }
public void Store(T key, U v, float nowT) { public void Store(T key, U v, double nowT) {
if (!map.ContainsKey(key)) { if (!map.ContainsKey(key)) {
map.Add(key, new V()); map.Add(key, new V());
map[key].SetSmoothing(smoothing); map[key].SetSmoothing(smoothing);
@ -79,8 +79,8 @@ namespace OpenSee {
abstract public class InterpolatedValue<V> { abstract public class InterpolatedValue<V> {
private float interpolateT = 0f; private float interpolateT = 0f;
private float updateT = 0f; private float updateT = 0f;
private float lastT = 0f; private double lastT = 0f;
private float currentT = 0f; private double currentT = 0f;
private float clamp = 1f; private float clamp = 1f;
private float smoothing = 0f; private float smoothing = 0f;
private int gotData = 0; private int gotData = 0;
@ -133,7 +133,7 @@ namespace OpenSee {
UpdateValue(v, Time.realtimeSinceStartup); UpdateValue(v, Time.realtimeSinceStartup);
} }
public void UpdateValue(V v, float nowT) { public void UpdateValue(V v, double nowT) {
if (nowT < 0f) if (nowT < 0f)
return; return;
lock (this) { lock (this) {