Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Knut Klingbeil
getm
Commits
dd418859
Commit
dd418859
authored
Dec 06, 2018
by
Knut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some bug-fixes for compilation
parent
89524b80
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
20 deletions
+13
-20
src/Rules.make
src/Rules.make
+1
-0
src/cmake/Modules/FindGOTM.cmake
src/cmake/Modules/FindGOTM.cmake
+7
-2
src/getm/Makefile
src/getm/Makefile
+2
-1
src/output/Makefile
src/output/Makefile
+3
-17
No files found.
src/Rules.make
View file @
dd418859
...
...
@@ -113,6 +113,7 @@ ifdef GOTM_PREFIX
GOTMLIBDIR
=
$(GOTM_PREFIX)
/lib
LINKDIRS
+=
-L
$(GOTMLIBDIR)
EXTRA_LIBS
+=
-loutput_manager
ifeq
($(FABM),true)
EXTRA_LIBS
+=
-lgotm_fabm
endif
...
...
src/cmake/Modules/FindGOTM.cmake
View file @
dd418859
...
...
@@ -18,12 +18,17 @@ find_library(GOTM_TURBULENCE NAMES turbulence
HINTS
${
GOTM_PREFIX
}
/lib
DOC
"GOTM turbulence library"
)
# Find GOTM output_manager library
find_library
(
GOTM_OUTMAN NAMES output_manager
HINTS
${
GOTM_PREFIX
}
/lib
DOC
"GOTM output_manager library"
)
# Find GOTM utility library
find_library
(
GOTM_UTIL NAMES util
HINTS
${
GOTM_PREFIX
}
/lib
DOC
"GOTM utility library"
)
set
(
GOTM_LIBRARIES
${
GOTM_FABM
}
${
GOTM_TURBULENCE
}
${
GOTM_UTIL
}
)
set
(
GOTM_LIBRARIES
${
GOTM_FABM
}
${
GOTM_TURBULENCE
}
${
GOTM_OUTMAN
}
${
GOTM_UTIL
}
)
# Store configurable path of GOTM include directory
find_path
(
GOTM_INCLUDE_DIRS
...
...
@@ -32,7 +37,7 @@ find_path(GOTM_INCLUDE_DIRS
DOC
"GOTM include directories"
)
mark_as_advanced
(
GOTM_LIBRARIES GOTM_INCLUDE_DIRS GOTM_TURBULENCE GOTM_UTIL GOTM_FABM
)
mark_as_advanced
(
GOTM_LIBRARIES GOTM_INCLUDE_DIRS GOTM_TURBULENCE
GOTM_OUTMAN
GOTM_UTIL GOTM_FABM
)
# Process default arguments (QUIET, REQUIRED)
include
(
FindPackageHandleStandardArgs
)
...
...
src/getm/Makefile
View file @
dd418859
...
...
@@ -10,6 +10,7 @@ SRC = main.F90 initialise.F90 integration.F90 cleanup.F90 \
compilation_options.F90 print_version.F90
MOD
=
\
${LIB}
(
register_all_variables.o
)
\
${LIB}
(
integration.o
)
\
${LIB}
(
initialise.o
)
...
...
@@ -29,7 +30,7 @@ doc: $(SRC)
touch
doc
clean
:
$(RM)
${LIB}
$(MODDIR)
/
{
integration,initialise
}
.
{
m.mod
}
$(RM)
${LIB}
$(MODDIR)
/
{
register_all_variables,
integration,initialise
}
.
{
m.mod
}
realclean
:
clean
$(RM)
*
.o doc
...
...
src/output/Makefile
View file @
dd418859
...
...
@@ -6,7 +6,7 @@ include ../Rules.make
LIB
=
$(LIBDIR)
/liboutput
${buildtype}
.a
MODSRC
=
output.F90
parser.F90 variable_info
.F90
\
MODSRC
=
output.F90
output_processing
.F90
\
ncdf_out.F90 ascii_out.F90
\
diagnostic_variables.F90 nesting.F90
...
...
@@ -23,11 +23,9 @@ endif
MOD
+=
\
${LIB}
(
ncdf_out.o
)
\
${LIB}
(
ascii_out.o
)
\
${LIB}
(
output_processing.o
)
\
${LIB}
(
output.o
)
#$(LIB)(variable_info.o) \
#$(LIB)(parser.o) \
OBJ
=
ifneq
($(GETM_NO_3D),true)
OBJ
+=
\
...
...
@@ -42,24 +40,12 @@ modules: $(MOD)
objects
:
$(OBJ)
tests
:
test_parser test_varinfo
test_parser
:
modules objects test_parser.o
$(FC)
-o
$@
$@
.o
$(LDFLAGS)
$(LIB)
$(RM)
$@
.o
./
$@
test_varinfo
:
modules objects test_varinfo.o
$(FC)
-o
$@
$@
.o
$(LDFLAGS)
$(LIB)
$(RM)
$@
.o
./
$@
doc
:
$(SRC)
$(PROTEX)
$(SRC)
>
$(DOCDIR)
/output.tex
touch
doc
clean
:
$(RM)
$(LIB)
$(MODDIR)
/
{
output,ncdf_out,ascii_out
}
.
{
m,mod
}
$(RM)
$(LIB)
$(MODDIR)
/
{
output,
output_processing,
ncdf_out,ascii_out
}
.
{
m,mod
}
realclean
:
clean
$(RM)
*
.o doc
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment