msmasnadi / OPGEEv4

OPGEE v4
Other
10 stars 4 forks source link

Caching of attribute values in processes defeats Monte Carlo value substitution #5

Closed rjplevin closed 8 months ago

rjplevin commented 8 months ago

Field instances as well as many/most processes store the values of attributes in instance variables. The MCS process updates attributes with values for the current trial and then calls Field's [new] cache_attributes() method. The same needs to happen in Process subclasses that cache attribute values or their values will not be updated with the values for the trial.

Processes that cache attributes should:

rjplevin commented 8 months ago

As described.