ElmerSolver_MPI / execute from different directory

Numerical methods and mathematical models of Elmer
Post Reply
hm7788
Posts: 6
Joined: 19 Sep 2017, 20:01
Antispam: Yes

ElmerSolver_MPI / execute from different directory

Post by hm7788 »

Hello,

I am looking for a way to execute parallel solver from different directory. Is this possible?
Currently, manual only mentions command of "mpirun -np 4 ElmerSolver_mpi" to run, but this has to be run from the same folder. Is there anyway to run it from different folder?
For example:
all required files are in <directory_3> as below, but I would like to run the simulation from <directory_1>. Does anyone have any idea?
~/directory_1/directory_2/directory_3

Thanks,
Jingfu
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: ElmerSolver_MPI / execute from different directory

Post by raback »

Hi

Not really. Things would become complicated since you would have to modify the sif so that all the directories / filenames are relative to the other directory.

It could be worth implementing. This hasn't been a problem as you can always add some "cd" to your scripts...

-Peter
hm7788
Posts: 6
Joined: 19 Sep 2017, 20:01
Antispam: Yes

Re: ElmerSolver_MPI / execute from different directory

Post by hm7788 »

Thanks Peter.
You are right, it is actually not a problem. I was just trying to avoid using 'cd' since I compiled Elmer with several other packages, and don't wonna mess up directories. But it looks like 'cd' is the only option for now.
Thanks for this clarification.

Jingfu
Post Reply