We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In order to implement #6, there should be a way for actions to know the time of the simulation.
The text was updated successfully, but these errors were encountered:
One approach is to add a fifth template parameter to action base for time as follows:
template < class NetworkType , class ContentsType , class ConfigType , class RngType , class TimeType > class action_base
and then initialize it in init() member function:
void init( NetworkType& net , ContentsType& cnt , ConfigType& cnf , RngType& rng , TimeType& time)
And assign it as a const reference member.
Sorry, something went wrong.
A better solution is to introduce a virtual function to action_base class rather than having a const pointer to time variable:
class action_base { public: virtual action_base::update_weight(const TimeType& time) { do_update_weight(time); } private: do_update_weight(const TimeType& time) = 0; }
#6 and #7 were implemented for single threaded version
3c05c34
#6 and #7 were implemented for multi-threaded version
885e6e2
arminms
No branches or pull requests
In order to implement #6, there should be a way for actions to know the time of the simulation.
The text was updated successfully, but these errors were encountered: