Problem with Restart File

Numerical methods and mathematical models of Elmer
Post Reply
Andrea_P
Posts: 176
Joined: 22 Mar 2021, 18:39
Antispam: Yes
Location: POLYTHECNIC UNIVERSITY OF TURIN

Problem with Restart File

Post by Andrea_P »

Hi,
I am trying to create a restart file, but when I run the case.sif, Elmer points out an error. Thanks in advance for your help.
-Andrea
Attachments
output.txt
(2.79 KiB) Downloaded 115 times
case.sif
(3.29 KiB) Downloaded 115 times
POLYTECHNIC UNIVERSITY OF TURIN-DIMEAS
kevinarden
Posts: 2221
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Problem with Restart File

Post by kevinarden »

It can't open the file because it can't find the file, which is caused by directories and how they are specified in the header file

Header
CHECK KEYWORDS Warn
Mesh DB "." "."
Include Path ""
Results Directory ""
End

Mesh DB means the location of the mesh files the first " " is the directory, "." means the current working directory that ElmerSolver was executed from. The second " " is the subdirectory that the mesh files could be in. So for example if my current working directory was this when I execute ElmerSolver

C:\myproject\elmerstudy

then "." means the current working directory is C:\myproject\elmerstudy

if I had my mesh files in a subdirectory named mesh1 than

Mesh DB "." "mesh1"

would mean the actual mesh files are in

C:\myproject\elmerstudy\mesh1

When working only in windows with only ElmerGUI this can be not so familiar as those who often work in command lines on linux. The best defense is to not use shortcuts, the header information could be written as

Mesh DB "c:\myproject\elmerstudy" "mesh1

leaving no interpretation of the file locations.

Or perhaps if no header entries are included, than perhaps elmer would look in the current working directory for all files.

Currently the log file says it is looking for the file in ././case_1.result

ERROR:: LoadRestartFile: Could not open file "././case_1.result"

which is likely to many ./
Andrea_P
Posts: 176
Joined: 22 Mar 2021, 18:39
Antispam: Yes
Location: POLYTHECNIC UNIVERSITY OF TURIN

Re: Problem with Restart File

Post by Andrea_P »

kevinarden wrote: 28 Jun 2021, 22:30 It can't open the file because it can't find the file, which is caused by directories and how they are specified in the header file

Header
CHECK KEYWORDS Warn
Mesh DB "." "."
Include Path ""
Results Directory ""
End

Mesh DB means the location of the mesh files the first " " is the directory, "." means the current working directory that ElmerSolver was executed from. The second " " is the subdirectory that the mesh files could be in. So for example if my current working directory was this when I execute ElmerSolver

C:\myproject\elmerstudy

then "." means the current working directory is C:\myproject\elmerstudy

if I had my mesh files in a subdirectory named mesh1 than

Mesh DB "." "mesh1"

would mean the actual mesh files are in

C:\myproject\elmerstudy\mesh1

When working only in windows with only ElmerGUI this can be not so familiar as those who often work in command lines on linux. The best defense is to not use shortcuts, the header information could be written as

Mesh DB "c:\myproject\elmerstudy" "mesh1

leaving no interpretation of the file locations.

Or perhaps if no header entries are included, than perhaps elmer would look in the current working directory for all files.

Currently the log file says it is looking for the file in ././case_1.result

ERROR:: LoadRestartFile: Could not open file "././case_1.result"

which is likely to many ./
Thanks, Kevin for your help
-Andrea
POLYTECHNIC UNIVERSITY OF TURIN-DIMEAS
Post Reply