Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Error when compiling: PIO1.f90 error

Hello, I've seen PIO1.f90 error & which presents the same issue, but the solution there didn't work for me.

I am trying to compile using:

Code:
danilocs@svante2:/scr1/danilocs/MPAS/MPAS-Model$ make -j4 gfortran CORE=init_atmosphere PRECISION=single DEBUG=true USE_PIO2=true > log_build.txt

Which gives me:

Code:
gfortran: error: pio1.f90: No such file or directory

gfortran: error: pio2.f90: No such file or directory

make[6]: warning: -jN forced in submake: disabling jobserver mode.

make[6]: warning: -jN forced in submake: disabling jobserver mode.

mpas_log.F:42:7:


   42 |    use mpas_derived_types

      |       1

Fatal Error: Cannot read module file 'mpas_derived_types.mod' opened at (1), because it was created by a different version of GNU Fortran

compilation terminated.

make[3]: *** [mpas_log.o] Error 1
make[2]: *** [frame] Error 2

make[2]: *** Waiting for unfinished jobs....

make[1]: *** [mpas_main] Error 2

make: *** [gfortran] Error 2

Attached are the configuration file with export for all libraries and the complete error log.

Any suggestions?
 

Attachments

  • log_build.txt
    11.4 KB · Views: 3
  • bashrc.opt-mpas.txt
    1.4 KB · Views: 2
From your "log_build.txt", it looks like the code was already partially compiled before recompiling and saving the log. Also, the error
Code:
mpas_log.F:42:7:


   42 |    use mpas_derived_types

      |       1

Fatal Error: Cannot read module file 'mpas_derived_types.mod' opened at (1), because it was created by a different version of GNU Fortran
suggests that the model is being re-compiled with a different compiler without first cleaning.

Can you try the following:
make clean CORE=init_atmosphere
make gfortran CORE=init_atmosphere PRECISION=single DEBUG=true USE_PIO2=true >& log_build2.txt
(Note the redirection of both stdout and stderr in the build command.)
 
Top