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
ElmerSolver_MPI / execute from different directory
-
- Site Admin
- Posts: 4823
- Joined: 22 Aug 2009, 11:57
- Antispam: Yes
- Location: Espoo, Finland
- Contact:
Re: ElmerSolver_MPI / execute from different directory
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
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
Re: ElmerSolver_MPI / execute from different directory
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
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