On 6/27/25 1:08 PM, Toon Moene wrote:
On 6/27/25 17:41, Toon Moene wrote:

Note: as the timeline at the top of the source implies, I have worked on this until early 2021.

This means it compiled with gfortran 10 and 11.

So the problem is probably introduced after these versions.

[ Of course, while I perused the Fortran 2018 standard while writing this code, I could easily have made an error that gfortran 10/11 simply didn't catch. ]

I just used the following:


I managed to rebuild OpenCoarrays with gfortran 14. I bypassed the namelist read for image 1 to simplify and use the defaults. I can use this as a baseline for comparisons. I do not have a shared memory version working yet.

Jerry

$ rm *.mod
$ caf random-weather.f90
$ time cafrun -np 9 ./a.out
Decomposition information on image 1 : there are 9 * 1 slabs; the slabs are 8 * 70 grid cells in size. Decomposition information on image 4 : there are 9 * 1 slabs; the slabs are 8 * 70 grid cells in size. Decomposition information on image 9 : there are 9 * 1 slabs; the slabs are 8 * 70 grid cells in size. Decomposition information on image 2 : there are 9 * 1 slabs; the slabs are 8 * 70 grid cells in size. Decomposition information on image 3 : there are 9 * 1 slabs; the slabs are 8 * 70 grid cells in size. Decomposition information on image 5 : there are 9 * 1 slabs; the slabs are 8 * 70 grid cells in size. Decomposition information on image 7 : there are 9 * 1 slabs; the slabs are 8 * 70 grid cells in size. Decomposition information on image 8 : there are 9 * 1 slabs; the slabs are 8 * 70 grid cells in size. Decomposition information on image 6 : there are 9 * 1 slabs; the slabs are 8 * 70 grid cells in size. Time 0 Image 1 PS= 99981.2109 T= 300.248199 U= 1.40828133 V= -12.5582199 W= -1.27365887E-02 Q= 2.00838665E-03 Time 0 Image 2 PS= 99981.9531 T= 299.867096 U= 17.6945534 V= 21.5538158 W= -4.10759933E-02 Q= 1.77268963E-03 Time 0 Image 3 PS= 99991.2422 T= 299.674774 U= 21.6714897 V= 2.91357994 W= -4.55363318E-02 Q= 1.97232608E-03 Time 0 Image 4 PS= 100023.133 T= 300.284668 U= -20.5439854 V= -2.53082943 W= 0.127494216 Q= 1.84043217E-03 Time 0 Image 5 PS= 99992.8906 T= 299.963531 U= 10.4467106 V= 21.5147152 W= 0.228881583 Q= 2.10474734E-03
.
.
.
Time 3600 Image 1 PS= 99983.8438 T= 299.589111 U= -21.4619408 V= -18.8246746 W= 1.01720989E-02 Q= 1.55027839E-03 Time 3600 Image 2 PS= 99983.3594 T= 299.414215 U= 17.0610657 V= 1.57637787 W= -0.424374938 Q= 2.15925346E-03 Time 3600 Image 5 PS= 100047.078 T= 301.533661 U= -0.267427444 V= 6.67605972 W= 9.31660235E-02 Q= 3.30941868E-03 Time 3600 Image 6 PS= 99928.2422 T= 301.171844 U= 10.0648623 V= -12.2755585 W= -0.216687098 Q= 2.38793110E-03 Time 3600 Image 7 PS= 100004.266 T= 300.392883 U= -1.27903223 V= -8.06934357 W= -1.16891116E-02 Q= 1.46662630E-03 Time 3600 Image 8 PS= 99970.1953 T= 300.805756 U= -2.01795101 V= 6.29295492 W= 0.460557282 Q= 2.66364752E-03 Time 3600 Image 9 PS= 99951.7422 T= 300.772064 U= -29.1435776 V= 3.12836075 W= 0.183356822 Q= 1.01996015E-03 Time 3600 Image 3 PS= 100033.242 T= 299.591583 U= -29.1381416 V= 25.5206833 W= -0.373341858 Q= 1.86515716E-03 Time 3600 Image 4 PS= 99987.3750 T= 300.154602 U= -19.5735817 V= 25.6468697 W= 0.309570014 Q= 1.84511195E-03

real    0m7.426s
user    0m47.602s
sys     0m42.707s

Reply via email to