Use correct pointer indirection
When the sim parameter is a pointer to a simulator, we must of course use indirect access to its field; the shared_ptr template class does not have this method!
This commit is contained in:
parent
1baf7369ef
commit
3c10785241
@ -142,7 +142,7 @@ struct SimulatorOutput : public SimulatorOutputBase {
|
||||
, sim_ (sim) {
|
||||
|
||||
// connect simulation with output writer
|
||||
sim.timestep_completed ().add (*this);
|
||||
sim->timestep_completed ().add (*this);
|
||||
}
|
||||
|
||||
protected:
|
||||
|
Loading…
Reference in New Issue
Block a user