cortix_main¶
-
class
cortix_main.
Cortix
(use_mpi=False, splash=False, log_filename='cortix')[source]¶ Bases:
object
Cortix main class definition.
The typical Cortix run file workflow:
Create the Cortix object
Create tne (nested) network of modules
Run and close Cortix
-
__del__
()[source]¶ Destructs a Cortix simulation object.
Warning
By the time the body of this function is executed, the machinery of variables may have been deleted already. For example, logging is no longer there; do the least amount of work here.
-
__init__
(use_mpi=False, splash=False, log_filename='cortix')[source]¶ Construct a Cortix simulation object.
- Parameters
-
comm
¶ MPI.COMM_WORLD (if using MPI else None).
- Type
mpi4py.MPI.Intracomm
-
close
()[source]¶ Closes the cortix object properly before destruction.
User is strongly advised to call this method at the end of the run file otherwise timings will not be recorded.
-
network