1 %> @file SimulationSetup.m
2 %> @author The Lymph Team
4 %> @brief Initialization of the simulation
6 %==========================================================================
7 %> @section classSimulationSetup Class description
8 %==========================================================================
9 %> @brief Initialization of the simulation
15 %==========================================================================
17 %% Import lymph and add path related to
this physics.
18 run(
"ImportLymphPaths.m")
19 addpath(genpath(MyPhysicsPath));
24 %% Create the setup structure
27 %% Initiate the parallel
28 Setup.p = gcp(
'nocreate');
29 if Setup.isParallel && isempty(Setup.p)
30 parpool(Setup.numCores);
31 elseif not(Setup.isParallel) && ~isempty(Setup.p)
35 ps = parallel.Settings;
36 ps.Pool.AutoCreate = false;