[cig-commits] [commit] master: clean up a TODO comment (78c62d4)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Wed Jun 4 12:47:23 PDT 2014
Repository : https://github.com/geodynamics/aspect
On branch : master
Link : https://github.com/geodynamics/aspect/compare/dea94ae3fdac1f434e32718c384fe5ce83109802...db7eea299d721e7afa2dc72d8f42352dc88a9e16
>---------------------------------------------------------------
commit 78c62d4d15a780d90346b4020426b5156997fe69
Author: Timo Heister <timo.heister at gmail.com>
Date: Sun Jun 1 17:02:23 2014 -0400
clean up a TODO comment
>---------------------------------------------------------------
78c62d4d15a780d90346b4020426b5156997fe69
source/simulator/core.cc | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/source/simulator/core.cc b/source/simulator/core.cc
index f5f895a..dedda45 100644
--- a/source/simulator/core.cc
+++ b/source/simulator/core.cc
@@ -225,12 +225,8 @@ namespace aspect
"is not used by the geometry model."));
}
- // continue with initializing members that can't be initialized for one reason
- // or another in the member initializer list above
-
- // TODO: Could this be done in the interfaces create_... function? Would be cleaner
- // and initialize() called from create_... would already have SimulatorAccess
- // if any plugin wants access to the Simulator by deriving from SimulatorAccess, initialize it:
+ // if any plugin wants access to the Simulator by deriving from SimulatorAccess, initialize it and
+ // call the initialize() functions immediately after.
if (SimulatorAccess<dim> *sim = dynamic_cast<SimulatorAccess<dim>*>(geometry_model.get()))
sim->initialize (*this);
geometry_model->initialize ();
More information about the CIG-COMMITS
mailing list