Hi Philippe,
Thanks for the advice. I am running Pencil locally on a Linux-based machine.
I think I found the cause of the problem. After changing the value of `MPICOMM` to `nompicomm` in the file `src/Makefile.local`, both the `pc_start` and `pc_run` commands execute in a fraction of a second, even for the larger resolution of 64^3.
However, when I run the code with `mpicomm`, `pc_build` gives a bunch of warnings similar to:
```
Warning: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/INTEGER(8)).
mpicomm.f90:366:45:
366 | call MPI_COMM_SPLIT(MPI_COMM_PENCIL, int(iproc/ncpus), mod(iproc,ncpus), MPI_COMM_GRID, mpierr)
| 1
......
11166 | call MPI_COMM_SPLIT(MPI_COMM_PENCIL, lwrite_slice_r, iproc, MPI_COMM_RSLICE, mpierr)
| 2
Warning: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/LOGICAL(4)).
mpicomm.f90:246:38:
246 | call MPI_TYPE_SIZE(MPI_INTEGER, size_of_int, mpierr)
| 1
......
4417 | call MPI_TYPE_SIZE(mpi_precision, sizeofreal, mpierr)
```
Despite these warnings, the code eventually executes, and `pc_start` and `pc_run` produce data, but they are slow.
Any further suggestions would be appreciated.
---