lymph
SimulationSetup.m
Go to the documentation of this file.
1 %> @file SimulationSetup.m
2 %> @author The Lymph Team
3 %> @date 13 May 2026
4 %> @brief Initialization of the simulation
5 %>
6 %==========================================================================
7 %> @section classSimulationSetup Class description
8 %==========================================================================
9 %> @brief Initialization of the simulation
10 %>
11 %> @param ~
12 %>
13 %> @retval ~
14 %>
15 %==========================================================================
16 
17 %% Import lymph and add path related to this physics.
18 run("ImportLymphPaths.m")
19 addpath(genpath(MyPhysicsPath));
20 
21 %% Print the header
22 Header;
23 
24 %% Create the setup structure
25 run("RunSetup.m")
26 
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)
32  delete(Setup.p)
33 end
34 
35 ps = parallel.Settings;
36 ps.Pool.AutoCreate = false;