Trying to compile Elmer Fem under Windows 10 with MinGW-W64 GCC-8.1.0 (Downloaded from here https://sourceforge.net/projects/mingw-w64/files/)
Got an error for realtime() between VelocityUpdate.F90 and LoadMod.F90:
Code: Select all
D:\00master\elmerfem-devel\fem\build_win10>make
CMakeFiles/f90.dir/depend.make:857: warning: overriding recipe for target 'CMakeFiles/f90.dir/kinds.mod.stamp'
CMakeFiles/f90.dir/depend.make:850: warning: ignoring old recipe for target 'CMakeFiles/f90.dir/kinds.mod.stamp'
Scanning dependencies of target f90
CMakeFiles/f90.dir/depend.make:857: warning: overriding recipe for target 'CMakeFiles/f90.dir/kinds.mod.stamp'
CMakeFiles/f90.dir/depend.make:850: warning: ignoring old recipe for target 'CMakeFiles/f90.dir/kinds.mod.stamp'
[ 1%] Building Fortran object CMakeFiles/f90.dir/src/F90/VankaCreate.F90.obj
[ 2%] Building Fortran object CMakeFiles/f90.dir/src/F90/VelocityUpdate.F90.obj
D:\00master\elmerfem-devel\fem\src\F90\VelocityUpdate.F90:71:76:
D:\00master\elmerfem-devel\fem\src\F90\VelocityUpdate.F90:50:6:
USE DefUtils
2
D:\00master\elmerfem-devel\fem\src\F90\VelocityUpdate.F90:71:76:
REAL(KIND=dp) :: Norm, PrevNorm, RelC, NonlinearTol, NonLinError, RealTime, at0
1
Error: Symbol 'realtime' at (1) conflicts with symbol from module 'loadmod', use-associated at (2)
D:\00master\elmerfem-devel\fem\src\F90\VelocityUpdate.F90:230:8:
at0 = RealTime()
1
Error: Symbol 'at0' at (1) has no IMPLICIT type
D:\00master\elmerfem-devel\fem\src\F90\VelocityUpdate.F90:163:20:
NonlinearTol = ListGetConstReal( Solver % Values, &
1
Error: Symbol 'nonlineartol' at (1) has no IMPLICIT type; did you mean 'nonlineariter'?
D:\00master\elmerfem-devel\fem\src\F90\VelocityUpdate.F90:388:12:
Norm = DefaultSolve()
1
Error: Symbol 'norm' at (1) has no IMPLICIT type; did you mean 'mgnorm'?
make[2]: *** [CMakeFiles\f90.dir\build.make:1258: CMakeFiles/f90.dir/src/F90/VelocityUpdate.F90.obj] Error 1
make[1]: *** [CMakeFiles\Makefile2:126: CMakeFiles/f90.dir/all] Error 2
make: *** [Makefile:102: all] Error 2
D:\00master\elmerfem-devel\fem\build_win10>
https://github.com/ElmerCSC/elmerfem/bl ... te.F90#L71
Code: Select all
REAL(KIND=dp) :: Norm, PrevNorm, RelC, NonlinearTol, NonLinError, RealTime, at0
LoadMod.F90 related code is:
Code: Select all
INTERFACE
FUNCTION realtime() RESULT(dbl) BIND(C,name='realtime')
USE, INTRINSIC :: ISO_C_BINDING
REAL(C_DOUBLE) :: dbl
END FUNCTION realtime
END INTERFACE
Remove RealTime in the line of VelocityUpdate.F90 seems resolve this conflicts.
Regards,
Cean