Hi, slevis, thanks for your advice, I did not change any code in the model. I checkd nearly all the similar problems on the internet, the only possibility I can think is about the configure process.
print *,__FILE__,__LINE__,i,trim(pbufPtr%hdr%name),pbufPtr%hdr%dtype,pbufPtr%hdr%persistence,pbufPtr%hdr%dimsizes
print *,__FILE__,__LINE__,i,trim(pbufPtr%hdr%name),pbufPtr%hdr%dtype, &
pbufPtr%hdr%persistence,pbufPtr%hdr%dimsizes
./case.setup --reset
./case.build --clean-all
./case.build
When you see error on byte 132 that means the line is too long for the Fortran compiler to like.Hello
When I am porting CESM 2.2.0 to a ubuntu server, I met an error during the ./case.build as shown below.
View attachment 4108
My config_machines.xml and config _compilers.xml and bld.log are attached.
Thanks for any reply.
Thank you so much! It's working now! :DWhen you see error on byte 132 that means the line is too long for the Fortran compiler to like.
you need -ffree-line-length-none
Please add this to your config_compilers.xml
<FFLAGS>
<append> -fallow-argument-mismatch -fallow-invalid-boz -ffree-line-length-none</append>
</FFLAGS>
Hi, peverley.Hi @Fuhow
It looks like this might be a bug in the code. Can you try breaking up the line in question in components/cam/src/physics/cam/physics_buffer.F90.in into two lines:
i.e. change line ~764
to:
Once you do that, do a clean rebuild to make sure your case reflects the new code:
Let me know if that doesn't work.
Courtney
Hi Fuhow,Hi, peverley.
Thanks for your reply, the problem is truly in the .F90 file. As you and Johnny said, the Fortran compiler cannot compile the long code, and my CESM is working now through Johnny's way!