dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #22179
SubSystemsManager mess
-
To:
DOLFIN Mailing List <dolfin@xxxxxxxxxxxxxxxxxxx>
-
From:
"Garth N. Wells" <gnw20@xxxxxxxxx>
-
Date:
Tue, 22 Mar 2011 18:29:23 +0000
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8
Our 'automatic' initialisation of MPI and PETSc is a real mess at the
moment. It seemed to work before by good luck. The major issue is
controlling order in the singleton class SubSystemsManager. For example,
I see that the function SubSystemsManager::init_mpi is called, which set
variables to take responsibility of MPI, and *after* this the
SubSystemsManager constructor is called, which resets that flags. The
end result is that MPI is not finalized.
I don't see an option other robust option than explicit 'initialise'
(and maybe 'finalise') function calls. Any other suggestions?
Garth
Follow ups