Closed kaiwu-astro closed 1 year ago
Now I have commit a new version with modified help message for -m option
Thank you. It is indeed more clear now, although default: A or B
sounds a bit ambiguous to me as a new user. Some more explanations here like -m: number of MPI processors (default: if PeTar compiled with MPI: 1 processor; otherwise: without MPI)
may better help the user. But nevermind, this version is already better.
I commit a new version. Now I explicitly explain that this option is used for setting "mpiexec -n" and in the default case MPI is not used.
-m: number of MPI processors used for "mpiexec -n " (default: MPI is not used)
Thank you! This version looks perfect to me.
Dear Long,
When I try PeTar on my local workstation, I was in this trouble.
./configure --with-mpi=no
petar.find.dt -h
, I see this line-m: number of MPI processors (default: 1)
. And I think, ohh it defaults to 1, so I need to set-m 0
because I did not configure MPI... mpiexec -n 0 petar ...
. Because I did not install mpich or openmpi on my workstation, it stops with error.Then I go to the code and find this line in tools/find_dt.sh:
[ -z $nmpi ] || prefix=$prefix' mpiexec -n '$nmpi
, which actually does not set mpiexec when -m is not specified. I think this is a bit in conflict with the help message, which says it defaults to-m 1
.So I open this PR to suggest an update:
Hope it helps PeTar users.
Best, Kai Wu [吴开]