ggciag / mandyoc

MANDYOC is a finite element code written on top of the PETSc library to simulate thermo-chemical convection of the Earth's mantle
https://ggciag.github.io/mandyoc/
BSD 3-Clause "New" or "Revised" License
27 stars 5 forks source link

Improve Makefile changing the MPI variable for the test #39

Closed aguspesce closed 2 years ago

aguspesce commented 2 years ago

I used the reviewer recommendation and change MPI_PATH for MPIEXEC for the test option.

-MPI_PATH = ${PETSC_DIR}/${PETSC_ARCH}/bin
+MPI_PATH = ${PETSC_DIR}/${PETSC_ARCH}/bin/mpirun

 test_mandyoc:

    @echo "Run MANDYOC test may take several minutes.."
-   cd test/testing_data/ ; ${MPI_PATH}/mpirun -n 2 ../../mandyoc
+   cd test/testing_data/ ; ${MPIEXEC} -n 2 ../../mandyoc
    pytest -v test/testing_result.py

https://github.com/openjournals/joss-reviews/issues/3551