From 6f52fe98e1c42be3ecb5d643f25acfd0f4f8e835 Mon Sep 17 00:00:00 2001 From: ctroupin Date: Wed, 30 Oct 2024 09:40:13 +0100 Subject: [PATCH] fix 'fortran Error: Rank mismatch between actual argument at (1) and ... --- DIVA3D/src/Fortran/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/DIVA3D/src/Fortran/Makefile b/DIVA3D/src/Fortran/Makefile index 0fc0433..1991fca 100644 --- a/DIVA3D/src/Fortran/Makefile +++ b/DIVA3D/src/Fortran/Makefile @@ -6,16 +6,17 @@ DIVA_PARALLEL=1 export compiler=gfortran -export flags=-O3 -frecord-marker=4 -cpp -DDIVAITERATIVE -std=legacy + +export flags=-O3 -frecord-marker=4 -cpp -DDIVAITERATIVE -fallow-argument-mismatch ifeq ($(DIVA_PARALLEL), 1) -export flagscalc=-O3 -cpp -fopenmp -DDIVAITERATIVE -DDIVAPARALLEL -DDIVAHUGEMEMORY -std=legacy + export flagscalc=-O3 -cpp -fopenmp -DDIVAITERATIVE -DDIVAPARALLEL -DDIVAHUGEMEMORY -fallow-argument-mismatch else -export flagscalc=-O3 -cpp -DDIVAITERATIVE -Wall -fbounds-check -DDIVAHUGEMEMORY -std=legacy + export flagscalc=-O3 -cpp -DDIVAITERATIVE -Wall -fbounds-check -DDIVAHUGEMEMORY -fallow-argument-mismatch endif export nclib=$(shell nf-config --flibs) -export ncinc=$(shell nf-config --fflags) +export ncinc=$(shell nf-config --fflags) -fallow-argument-mismatch #export ncinc=-I/usr/local/include #export nclib=-L/usr/local/lib -lnetcdff -L/usr/local/lib -lnetcdf -lnetcdf