From 31132164e640e19060cd4b2a625ba32a62cfdc66 Mon Sep 17 00:00:00 2001 From: Lucas John Jacobson Date: Tue, 21 May 2024 13:27:35 -0500 Subject: [PATCH] Fix gfortran-13 errors --- patch/mcnp611.patch | 34 ++++++++-------------------------- patch/mcnpx27.patch | 6 ++++++ 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/patch/mcnp611.patch b/patch/mcnp611.patch index 60ef322..e1ea77f 100644 --- a/patch/mcnp611.patch +++ b/patch/mcnp611.patch @@ -19,13 +19,11 @@ diff -rN '--unified=0' MCNP611/Source/import/strexc.inc MCNP611/Source_new/impor diff -rN '--unified=0' MCNP611/Source/src/cgm_interface.F90 MCNP611/Source_new/src/cgm_interface.F90 --- MCNP611/Source/src/cgm_interface.F90 +++ MCNP611/Source_new/src/cgm_interface.F90 -@@ -28,0 +29,4 @@ -+#if __INTEL_COMPILER >= 1600 +@@ -29,2 +29,2 @@ +- import :: c_double +- real (kind=c_double), external, bind(c) :: rngfunc + import :: c_funptr + type(c_funptr), value :: rngfunc -+#else -@@ -30,0 +35 @@ -+#endif diff -rN '--unified=0' MCNP611/Source/src/charged_particle_history.F90 MCNP611/Source_new/src/charged_particle_history.F90 --- MCNP611/Source/src/charged_particle_history.F90 +++ MCNP611/Source_new/src/charged_particle_history.F90 @@ -45,24 +43,14 @@ diff -rN '--unified=0' MCNP611/Source/src/exemes.F90 MCNP611/Source_new/src/exem diff -rN '--unified=0' MCNP611/Source/src/imcn.F90 MCNP611/Source_new/src/imcn.F90 --- MCNP611/Source/src/imcn.F90 +++ MCNP611/Source_new/src/imcn.F90 -@@ -36,0 +37,3 @@ -+#if __INTEL_COMPILER >= 1600 +@@ -36,0 +37 @@ + use, intrinsic :: iso_c_binding -+#endif -@@ -2033 +2036,5 @@ +@@ -2033 +2034 @@ - call setrngcgm(rang) -+#if __INTEL_COMPILER >= 1600 + call setrngcgm(c_funloc(rang)) -+#else -+ call setrngcgm(rang) -+#endif -@@ -2299 +2306,5 @@ +@@ -2299 +2300 @@ - call setrngcgm(rang) -+#if __INTEL_COMPILER >= 1600 + call setrngcgm(c_funloc(rang)) -+#else -+ call setrngcgm(rang) -+#endif diff -rN '--unified=0' MCNP611/Source/src/main.F90 MCNP611/Source_new/src/main.F90 --- MCNP611/Source/src/main.F90 +++ MCNP611/Source_new/src/main.F90 @@ -153,17 +141,11 @@ diff -rN '--unified=0' MCNP611/Source/src/mcnp_env.F90 MCNP611/Source_new/src/mc diff -rN '--unified=0' MCNP611/Source/src/msgtsk.F90 MCNP611/Source_new/src/msgtsk.F90 --- MCNP611/Source/src/msgtsk.F90 +++ MCNP611/Source_new/src/msgtsk.F90 -@@ -80,0 +81,3 @@ -+#if __INTEL_COMPILER >= 1600 +@@ -80,0 +81 @@ + use, intrinsic :: iso_c_binding -+#endif -@@ -308 +311,5 @@ +@@ -308 +309 @@ - call setrngcgm(rang) -+#if __INTEL_COMPILER >= 1600 + call setrngcgm(c_funloc(rang)) -+#else -+ call setrngcgm(rang) -+#endif diff -rN '--unified=0' MCNP611/Source/src/pblcom.F90 MCNP611/Source_new/src/pblcom.F90 --- MCNP611/Source/src/pblcom.F90 +++ MCNP611/Source_new/src/pblcom.F90 diff --git a/patch/mcnpx27.patch b/patch/mcnpx27.patch index 322078a..67d0cd3 100644 --- a/patch/mcnpx27.patch +++ b/patch/mcnpx27.patch @@ -1,3 +1,9 @@ +diff -rN '--unified=0' MCNPX27/Source/include/lcs/charla.h MCNPX27/Source_new/include/lcs/charla.h +--- MCNPX27/Source/include/lcs/charla.h ++++ MCNPX27/Source_new/include/lcs/charla.h +@@ -7 +7 @@ +- common /charla/ msub, inh, outh, histp, neutp, bertin, elstin, !/*ch 7*/ ++ common /charla/ msub, inh, outh, neutp, bertin, elstin, !/*ch 7*/ diff -rN '--unified=0' MCNPX27/Source/mcnpx/mcnpf/GLOBAL1_zc.F MCNPX27/Source_new/mcnpx/mcnpf/GLOBAL1_zc.F --- MCNPX27/Source/mcnpx/mcnpf/GLOBAL1_zc.F +++ MCNPX27/Source_new/mcnpx/mcnpf/GLOBAL1_zc.F