File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 6
6
# Jacob Williams : 2/8/2014
7
7
#
8
8
9
+ # Uncomment to debug
10
+ # set -x
11
+
9
12
SRCDIR=' src/'
10
13
BUILDDIR=' lib/'
11
14
BINDIR=' bin/'
12
15
16
+ # Intel compiler
13
17
FCOMPILER=' ifort'
14
- FCOMPILERFLAGS=' -O2'
15
- # FCOMPILERFLAGS='-check all -debug full'
18
+ # The following warning might be triggered by ifort unless explicitly silenced:
19
+ # warning #7601: F2008 standard does not allow an internal procedure to be an actual argument procedure name. (R1214.4).
20
+ # In the context of F2008 this is an erroneous warning.
21
+ # See https://prd1idz.cps.intel.com/en-us/forums/topic/486629
22
+ FCOMPILERFLAGS=' -O2 -warn -stand f08 -diag-disable 7601 -traceback'
23
+ # FCOMPILERFLAGS='-warn -traceback -stand f08 -assume protect_parens -assume buffered_io -check all'
24
+ # trailing space is significant
25
+ FCMODULEPATHFLAG=' -module '
26
+
27
+ # GFortran (must be >= 4.9)
28
+ # FCOMPILER='/opt/local/bin/gfortran-mp-4.9'
29
+ # FCOMPILERFLAGS='-O2 -fbacktrace -Wall -Wextra -Wno-maybe-uninitialized -pedantic -std=f2008'
30
+ # FCMODULEPATHFLAG='-J'
16
31
17
32
ARCHIVER=' ar'
18
33
ARCHIVERFLAGS=' -cq'
@@ -32,8 +47,9 @@ mkdir -p $BUILDDIR
32
47
mkdir -p $BINDIR
33
48
34
49
# build library:
35
- $FCOMPILER $FCOMPILERFLAGS -c $SRCDIR$MODCODE$FEXT -Fo$BUILDDIR -module $BUILDDIR
50
+ $FCOMPILER $FCOMPILERFLAGS -c $SRCDIR$MODCODE$FEXT $FCMODULEPATHFLAG$BUILDDIR
51
+ mv $MODCODE$OBJEXT $BUILDDIR
36
52
$ARCHIVER $ARCHIVERFLAGS $BUILDDIR$LIBOUT$LIBEXT $BUILDDIR$MODCODE$OBJEXT
37
53
38
54
# build example:
39
- $FCOMPILER $FCOMPILERFLAGS -o $BINDIR$EXEOUT -module $BUILDDIR $SRCDIR$EXAMPLECODE$FEXT $BUILDDIR$LIBOUT$LIBEXT
55
+ $FCOMPILER $FCOMPILERFLAGS -o $BINDIR$EXEOUT $FCMODULEPATHFLAG $BUILDDIR $SRCDIR$EXAMPLECODE$FEXT $BUILDDIR$LIBOUT$LIBEXT
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ module json_module
224
224
subroutine array_callback_func (element , i , count )
225
225
import :: json_value
226
226
implicit none
227
- type (json_value), pointer :: element
227
+ type (json_value), pointer , intent ( in ) :: element
228
228
integer ,intent (in ) :: i ! index
229
229
integer ,intent (in ) :: count ! size of array
230
230
end subroutine array_callback_func
You can’t perform that action at this time.
0 commit comments