Override ELMERSOLVER_STARTINFO?

Numerical methods and mathematical models of Elmer
Post Reply
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Override ELMERSOLVER_STARTINFO?

Post by mzenker »

Hi,

I want to run Elmersolver on a sif file different from the one in ELMERSOLVER_STARTINFO in the same directory. So I tried

Code: Select all

Elmersolver case2.sif
from the command line. But Elmersolver executes case.sif as contained in the ELMERSOLVER_STARTINFO.
Questions:
1. Doesn't a file name as argument to Elmersolver override the contents of ELMERSOLVER_STARTINFO?
2. Where can I find a list of Elmersolver commandline options?

Thanks,

Matthias
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Override ELMERSOLVER_STARTINFO?

Post by mzenker »

I extend my question:
when I delete ELMERSOLVER_STARTINFO and call ElmerSolver from the DOS command line as in

Code: Select all

Elmersolver case2.sif > > case2.log 2>&1
I get an error saying

Code: Select all

ERROR:: ElmerSolver: Unable to find ELMERSOLVER_STARTINFO, can not execute.
So what is the correct syntax (for DOS/Windows) to make ElmerSolver execute a given sif file?

Thanks,

Matthias
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Override ELMERSOLVER_STARTINFO?

Post by mzenker »

Hi again,

a glance into the sources reveals that indeed a file name as argument should override ELMERSOLVER_STARTINFO. But it doesn't for me. The question is what I do wrong here...

Thanks for a hint,

Matthias
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Override ELMERSOLVER_STARTINFO?

Post by raback »

Hi Matthias

It works in Linux but not in Windows. This has to my understanding to do with what features the compilers support in given platforms.

-Peter
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Override ELMERSOLVER_STARTINFO?

Post by mzenker »

i Peter,

thank you for the clarification.
In this case I will rewrite ELMERSOLVER_STARTINFO before I launch ElmerSolver. I assume that ELMERSOLVER_STARTINFO is read only once at the very beginning, so it can be modified afterwards without without affecting the solver run. The application is that I want to run the solver several times on the same mesh with different settings from a batch file.

Thanks,

Matthias
Post Reply