null

Message Boards

Restart from a map file, howto

VY
veli yumruktepe, modified 5 Years ago.

Restart from a map file, howto

Padawan Posts: 42 Join Date: 2/7/12 Recent Posts
Hi all,

I am trying to restart my water quality model from a previous run. I was planning to use the map file. The way I follow is to create the model in gui in windows and run it in linux. When you assign the map file to restart from gui, it can be seen in the .scn file with the exact location. Of course this location will be absent in my linux machine. Will it be enough to change these locations according to my linux machine, or should i find the appropriate lines in the .inp file. I couldnt find the comment in the .inp file to change these locations. Which way should I follow?

Thanks
AM
Arjen Markus, modified 5 Years ago.

RE: Restart from a map file, howto

Jedi Knight Posts: 223 Join Date: 1/26/11 Recent Posts
It should be enough to change the exact location of the map-file in the GUI or in the .scn file and regenerate the .inp file from there - at least assuming that you use the GUI on Linux.

Otherwise replace the directory in the .inp file directly. Note that Linux uses case-sensitive file names.
VY
veli yumruktepe, modified 5 Years ago.

RE: Restart from a map file, howto

Padawan Posts: 42 Join Date: 2/7/12 Recent Posts
That is the issue. I do not have gui in linux and in the input file (.inp), I couldn find where to change the location of the map file.

The only mentioning of the initial conditions is something like this in the .inp file:

; eighth block of model input (initial conditions)
0 ; initial conditions in binary file
'trM_140919_01.res' ; binary file
;

What I did was to set some of the variables equal to 0, and some of them from a previous map file. That is why I got confused. When I search for .map string, nothing is available in the .inp file.
AM
Arjen Markus, modified 5 Years ago.

RE: Restart from a map file, howto

Jedi Knight Posts: 223 Join Date: 1/26/11 Recent Posts
Ah, well, let me explain what happens in the GUI (we are working on a new release of the GUIs for Linux, hence my slight confusion ;)).

The GUI allows you to pick the initial condition per substance from various map files or times in the map file - or just a constant value. When it writes the input file, all this information is read from the map file or files and combined into a single array of data that is then stored in the .res file, created in the same directory as the input file itself.

So, if you put the .inp file and the .res file (similar things happen for the parameters, but not for the segment functions) on your Linux system, things are independent of the original map files. In other words: no need to copy these map files as well.
VY
veli yumruktepe, modified 5 Years ago.

RE: Restart from a map file, howto

Padawan Posts: 42 Join Date: 2/7/12 Recent Posts
Ok. Now I understand what happens there. I guess that solves my issue.
Thanks a lot for the fast response.

Cheers
Veli
AM
Arjen Markus, modified 5 Years ago.

RE: Restart from a map file, howto

Jedi Knight Posts: 223 Join Date: 1/26/11 Recent Posts
You're welcome - don't hesitate to ask, if you run into some other puzzle.