Personal tools

Tree.dat

From MohidWiki

Jump to: navigation, search

The Tree.dat file specifies the hierarchical structure of a Mohid Water nested models simulation. This file is expected to be placed in the working directory (\exe) of the father domain.

The first two lines are comment lines generated by MOHID GUI when setting up the simulation. The following lines specify the working folder (\exe) of each a model (or sub-model) domain preceeded by the symbol +. The number of +'s provides the level of nesting of each domain.

If the simulation has only one domain a single domain (e.g called Galicia) with no nested models, then the Tree.dat file should look like this.

Automatic Generated Tree File
by MOHID GUI
+C:\Galicia\exe

If the simulation has a sub-domain nested (e.g. called Rias) into the Galicia model then the Tree.dat file should look like this.

Automatic Generated Tree File
by MOHID GUI
+C:\Galicia\exe
++C:\Galicia\Rias\exe

If the Rias simulation has on the other hand a nested sub-domain (e.g. called Pontevedra) into the Rias model then the Tree.dat file should look like this.

Automatic Generated Tree File
by MOHID GUI
+C:\Galicia\exe
++C:\Galicia\Rias\exe
+++C:\Galicia\Pontevedra\exe

If the Rias simulation has 2 nested sub-domains (e.g. one called Pontevedra and another Vigo) into the Rias model then the Tree.dat file should look like this.

Automatic Generated Tree File
by MOHID GUI
+C:\Galicia\exe
++C:\Galicia\Rias\exe
+++C:\Galicia\Pontevedra\exe
+++C:\Galicia\Vigo\exe

Configuration for MPI procedures.

Define the number of processors for each domain by adding : and number of processors for that level after the level's exe folder location.

In the example below we are using 6 processors, 1 for the upper level domain and 5 for the nested domain:

Automatic Generated Tree File
by MOHID GUI
+..\..\Level1\exe : 1
++..\..\Level1\Level2\exe : 5