Skip to content

Commit

Permalink
fix 'fortran Error: Rank mismatch between actual argument at (1) and ...
Browse files Browse the repository at this point in the history
  • Loading branch information
ctroupin committed Oct 30, 2024
1 parent 6ab274d commit 6f52fe9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions DIVA3D/src/Fortran/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f52fe9

Please sign in to comment.