Parallel sculpt doesn't run on terminal

Dear all,

I am trying to run parallel sculpt on Coreform Cubit GUI, and it runs fine. When I try to run the same on the terminal as suggested, I get the error:

Initializing MPI on 8 Processors: mpiexec = /opt/Coreform-Cubit-2021.11/bin/./mpiexec

/opt/Coreform-Cubit-2021.11/bin/./mpiexec -np 8 /opt/Coreform-Cubit-2021.11/bin/./psculpt -j 8 -x 36 -y 36 -z 96 -t 39.648445 -u -1.849778 -v -2.111410 -q 68.982002 -r 27.483779 -s 76.111410 -e sculpt_parallel.diatom_result -d sculpt_parallel.diatom
/opt/Coreform-Cubit-2021.11/bin/mpi/bin/mpiexec: Error: unknown option "-np"

This issue seems to have been discussed in the forum but without a solution. I have also attached the output of the command:

strace -o cubit_mpi.txt /opt/Coreform-Cubit-2021.11/bin/./psculpt --input_file input_file.i

I have no other MPI currently linked. Any suggestion would be greatly appreciated.

Best,
Homcubit_mpi.txt (5.6 MB)

The strace looks good, there’s no other mpi libraries getting loaded from other locations. If it’s working in the GUI then licensing shouldn’t be an issue either.

Something the GUI does that may not be set up in your terminal is set the environment variables OPAL_PREFIX, OPAL_LIBDIR, and OPAL_BINDIR.
Try this in your terminal and run the command again:

export OPAL_PREFIX=/opt/Coreform-Cubit-2021.11/bin/mpi
export OPAL_LIBDIR=/opt/Coreform-Cubit-2021.11/bin/mpi/lib
export OPAL_BINDIR=/opt/Coreform-Cubit-2021.11/bin/mpi/bin

Thanks, Scot! It works perfectly!