<div dir="ltr">Hi,<div><br></div><div>I recently tried installing MITgcm on macbook pro M1 with 8 core.</div><div><br></div><div>I tried the followings:</div><div><br></div><div>I installed openmpi, netcdf using Homebrew.<br></div><div><br></div><div>%%%%%%%%%%%%%%%%%%%%%%</div><div>checking for packages installed</div><div>%%%%%%%%%%%%%%%%%%%%%</div><div></div><div>pinta@Mainaks-MBP ~ % which gcc</div>/usr/bin/gcc<br>pinta@Mainaks-MBP ~ % which gfortran<br>/opt/homebrew/bin/gfortran<br><div>pinta@Mainaks-MBP ~ % which mpif90<br>/opt/homebrew/bin/mpif90</div>pinta@Mainaks-MBP ~ % which ncdump<br><div>/opt/homebrew/bin/ncdump</div><div>%%%%%%%%%%%%%%%%%%%%</div><div><br></div><div>I downloaded the latest MITgcm </div><div><br></div><div>I tried to compile MITgcm/verification/tutorial_plume_on_slope/ using 8 cores.</div><div><br></div><div>%%%%%%%%%%%%%%%%%%%%</div><div>initially while in the build directory, I ran</div><div>pinta@Mainaks-MBP build % ../../../tools/genmake2 -mods=../code  -mpi<br></div><div><br></div><div>It shows:</div><div>The platform appears to be:  darwin_arm64<br></div><div>Error: can't read OPTFILE="../../../tools/build_options/darwin_arm64_mpif77"<br></div><div><br></div><div>Then I tried with the optfile </div><div>../../../tools/genmake2 -mods=../code --optfile=../../../tools/build_options/darwin_amd64_gfortran -mpi<br></div><div><br></div><div>I changed the followings:</div><div>FC=mpif90</div><div>commented out</div><div>#FFLAGS="$FFLAGS -fconvert=big-endian"</div><div><br></div><div>%%%%%%%%%%%%%%%%%%%%%%%%%%%</div><div>while make depend , I got lots of warning messeges like:</div><div><br></div><div>./mpif.h:37:24: warning: missing terminating ' character [-Winvalid-pp-token]<br>! That being said, OMPI's "mpifort" wrapper compiler should<br></div><div><br></div><div>%%%%%%%%%%%%%%%%%%%%%%%</div><div><br></div><div>while doing make</div><div><br></div>Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(8)).<br>cumulsum_z_tile.for:1193:27:<br><br> 1164 |             CALL MPI_RECV (ready_to_receive, 1, MPI_INTEGER,<br>      |                           2<br>......<br> 1193 |             CALL MPI_RECV (loc2Buf, lbuf2, MPI_DOUBLE_PRECISION,<br>      |                           1<br>Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/INTEGER(4)).<br>make[1]: *** [cumulsum_z_tile.o] Error 1<br>make[1]: *** Waiting for unfinished jobs....<br>make: *** [fwd_exe_target] Error 2<br><div><br></div><div><br></div><div>I would really appreciate it if anyone can help me.</div><div><br></div><div>Regards</div><div>--<br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><b>Mainak Mondal</b><div>Post-Doctoral Associate</div><div>A2 104-C</div><div>Center for Global Sea Level Change</div><div>New York University Abu Dhabi</div><div>ph: +971 26285339</div><div><br></div></div></div></div></div></div></div>