Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
37363ad
remove perf_mod dependancy
jedwards4b Jul 16, 2020
06a00b9
not yet working
jedwards4b Jul 16, 2020
db398b4
fix standalone build
jedwards4b Jul 21, 2020
b0820dc
update pio path
jedwards4b Jul 21, 2020
de999e6
add tskn, lwnet and wind speed, fix swnet
uturuncoglu Jul 27, 2020
eb8e465
more bld changes
jedwards4b Jul 27, 2020
b916a5d
check fields in the state before returning pointers
uturuncoglu Jul 27, 2020
44549e5
add test for ERA5
uturuncoglu Jul 28, 2020
6ac93fa
put extra log if it cannot find the field in the state
uturuncoglu Jul 29, 2020
067293e
Merge pull request #7 from ESCOMP/update_era5_v2
uturuncoglu Jul 29, 2020
5f9a655
bug fixes
Jul 30, 2020
317c8ae
first changes for 3d input capability
Aug 1, 2020
13a2708
updates to have DLND compset working and bfb
Aug 2, 2020
e7b4958
fix for fldptr return mode
uturuncoglu Aug 4, 2020
f5fef94
Merge pull request #10 from ESCOMP/fix_fldptr
uturuncoglu Aug 4, 2020
cb47276
addition of 3d functionality
Aug 5, 2020
6ed43c2
add fox as a submodule of cdeps
jedwards4b Aug 6, 2020
4f5499d
cleanup
Aug 6, 2020
54b6bb7
Merge branch 'master' into feature/bug_fixes
Aug 6, 2020
1c6624d
add fox submodule
jedwards4b Aug 6, 2020
fac382c
remove more t_barriers
jedwards4b Aug 6, 2020
13676a2
Merge pull request #12 from jedwards4b/add_fox_submodule
jedwards4b Aug 6, 2020
3bfc100
build fixes
jedwards4b Aug 7, 2020
a6a682a
update fox
jedwards4b Aug 7, 2020
7a0c37f
Create extbuild.yml
jedwards4b Aug 6, 2020
85f4ee2
untar pio
jedwards4b Aug 6, 2020
56784aa
no tabs allowed
jedwards4b Aug 6, 2020
17b9a45
add cdeps build
jedwards4b Aug 6, 2020
b355a68
try again
jedwards4b Aug 6, 2020
e4b1062
add esmf build
jedwards4b Aug 6, 2020
83c2a60
no tabs
jedwards4b Aug 6, 2020
dcc1d52
more workflow stuff
jedwards4b Aug 6, 2020
5759f6c
fix again
jedwards4b Aug 6, 2020
b2d5f3a
fix format
jedwards4b Aug 6, 2020
d17f05d
add :
jedwards4b Aug 6, 2020
f16271c
try again
jedwards4b Aug 6, 2020
6080602
try again
jedwards4b Aug 6, 2020
b2977c9
try again
jedwards4b Aug 6, 2020
e7581b9
try again
jedwards4b Aug 6, 2020
908f61d
redo esmf build
jedwards4b Aug 7, 2020
ba35a4b
redo esmf build
jedwards4b Aug 7, 2020
07c0ba9
redo esmf build
jedwards4b Aug 7, 2020
69683b9
put it together
jedwards4b Aug 7, 2020
4969e1d
tabs again
jedwards4b Aug 7, 2020
7eb7169
whitespace cleanup
jedwards4b Aug 7, 2020
b0fc9fe
reindent and try again
jedwards4b Aug 7, 2020
dd647f0
try a smaller piece
jedwards4b Aug 7, 2020
c47d196
fix indentation issues
jedwards4b Aug 7, 2020
516e500
more indentation issues
jedwards4b Aug 7, 2020
32cb41d
update fox cmake defaults
jedwards4b Aug 7, 2020
968b57c
try again
jedwards4b Aug 7, 2020
cda2c88
getting closer
jedwards4b Aug 7, 2020
c561e94
add pio build
jedwards4b Aug 7, 2020
3f972b8
add pnetcdf path
jedwards4b Aug 7, 2020
5daac89
add netcdf-fortran
jedwards4b Aug 7, 2020
08c67e9
fix syntax error
jedwards4b Aug 7, 2020
973bd40
find netcdf version
jedwards4b Aug 7, 2020
5195033
need netcdf-fortran 4.5.2
jedwards4b Aug 7, 2020
e6dc151
remove debug statement
jedwards4b Aug 7, 2020
b34d98d
another typo fixed
jedwards4b Aug 7, 2020
b116576
debug commit
jedwards4b Aug 7, 2020
88462dd
debug commit
jedwards4b Aug 7, 2020
34e4cea
update paths
jedwards4b Aug 7, 2020
981487d
restoring caches
jedwards4b Aug 7, 2020
dd95f0f
restoring caches
jedwards4b Aug 7, 2020
31e6767
add outputs
jedwards4b Aug 7, 2020
febee8e
add outputs
jedwards4b Aug 7, 2020
18294ea
add outputs
jedwards4b Aug 7, 2020
9d75383
Revert "add outputs"
jedwards4b Aug 7, 2020
59f7047
add outputs
jedwards4b Aug 7, 2020
d4bfc92
add outputs
jedwards4b Aug 7, 2020
e4aeaf9
one job?
jedwards4b Aug 7, 2020
9d8a59a
try again
jedwards4b Aug 7, 2020
654d660
now build cdeps
jedwards4b Aug 7, 2020
e937028
now build cdeps
jedwards4b Aug 7, 2020
06acde9
now build cdeps
jedwards4b Aug 7, 2020
42bcb08
add build flags
jedwards4b Aug 7, 2020
f172b16
add build flags
jedwards4b Aug 7, 2020
8de2f8d
add build flags
jedwards4b Aug 7, 2020
73dec14
add build flags
jedwards4b Aug 7, 2020
f38484d
add build flags
jedwards4b Aug 7, 2020
fbb0e1e
fix a real error
jedwards4b Aug 7, 2020
2fa1125
Merge pull request #13 from ESCOMP/add-github-actions
jedwards4b Aug 7, 2020
28c0644
more bug fixes
Aug 8, 2020
3e483ac
updates to latest cdeps
Aug 8, 2020
bfa92e3
more bug fixes
Aug 8, 2020
bb79a7f
Merge branch 'master' into feature/bug_fixes
jedwards4b Aug 8, 2020
339112c
Merge pull request #15 from ESCOMP/feature/bug_fixes
jedwards4b Aug 8, 2020
d7b8a4c
remove unused variables
jedwards4b Aug 8, 2020
5a1b060
more cleanup
jedwards4b Aug 8, 2020
b1b2697
changes to get 3d stream input working
Aug 10, 2020
246644a
clean up wav comp
jedwards4b Aug 10, 2020
9d716f9
more cleanup
jedwards4b Aug 10, 2020
1245cfa
more cleanup
jedwards4b Aug 10, 2020
f2126a3
fix errors
jedwards4b Aug 10, 2020
13c94c7
fix error
jedwards4b Aug 10, 2020
994aaa8
fix error
jedwards4b Aug 10, 2020
abd5508
fix error
jedwards4b Aug 10, 2020
dc2c91f
fix error
jedwards4b Aug 10, 2020
b798586
fix error
jedwards4b Aug 10, 2020
3db6586
fix error
jedwards4b Aug 10, 2020
b4e99c9
fix errors
jedwards4b Aug 10, 2020
7de813a
more fixes
jedwards4b Aug 10, 2020
8d55901
fix another issue
jedwards4b Aug 10, 2020
7eb6ede
use ymd instead of date
jedwards4b Aug 10, 2020
08ea63c
use ymd instead of date
jedwards4b Aug 10, 2020
23fedf3
replace bias_correction
jedwards4b Aug 10, 2020
cac4613
make esmf version env var
jedwards4b Aug 10, 2020
a680ed4
add versions to dependencies
jedwards4b Aug 10, 2020
e1f555f
fix workflow error
jedwards4b Aug 10, 2020
7c65629
fix workflow
jedwards4b Aug 10, 2020
fc1a331
Merge pull request #16 from ESCOMP/minimize_compiler_warnings
jedwards4b Aug 10, 2020
18b1d3b
merge to cdeps master
Aug 11, 2020
6a35dea
updates for documentation
Aug 11, 2020
db0a90e
Merge branch 'master' of https://github.com/ESCOMP/CDEPS
Aug 11, 2020
8ed166f
udpates for PR requests
Aug 11, 2020
60a7486
Merge branch 'master' into mvertens/cdeps3d_works
jedwards4b Aug 11, 2020
cfc5345
Merge pull request #19 from ESCOMP/mvertens/cdeps3d_works
jedwards4b Aug 11, 2020
6f33826
new stream_definition_xxx.xml
Aug 15, 2020
2023267
changes to fix aux_cdeps tests and bring in stream_cdeps.py and strea…
Aug 19, 2020
45b7a85
fixed bugs
Aug 19, 2020
d808b7c
addressed PR issues raised by Jim Edwards
Aug 20, 2020
e99ec4f
Merge pull request #21 from ESCOMP/new_stream_schema
jedwards4b Aug 20, 2020
2480ebb
fix find compiler with cime
jedwards4b Aug 26, 2020
82a2974
improve the build, remove hardcoded path
jedwards4b Sep 18, 2020
b9a3fa8
Merge pull request #27 from ESCOMP/build_improvements
jedwards4b Sep 25, 2020
8508f59
build improvements
jedwards4b Sep 25, 2020
d4394fa
fixed bug in drof JRA55 specfication for mesh file
Oct 2, 2020
977bfda
fix stdout format issue
jedwards4b Oct 30, 2020
2c2a2be
add code to avoid clashes when building multiple cases at once
jedwards4b Nov 16, 2020
a15b267
Merge branch 'master' of https://github.com/ESCOMP/CDEPS
jedwards4b Nov 16, 2020
dc6e3f6
increase wait time
jedwards4b Nov 16, 2020
8f0a405
simplify locking
jedwards4b Nov 16, 2020
6de6963
fix issue with CMAKE_INSTALL_PATH
jedwards4b Nov 17, 2020
3726ebb
cleanup;
jedwards4b Nov 17, 2020
3985a73
fix for pgi build
jedwards4b Nov 24, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions .github/workflows/extbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# This is a workflow to compile the cdeps source without cime
name: extbuild
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-cdeps:
runs-on: ubuntu-latest
env:
CC: mpicc
FC: mpifort
CXX: mpicxx
CPPFLAGS: "-I/usr/include -I/usr/local/include"
# Versions of all dependencies can be updated here
ESMF_VERSION: ESMF_8_1_0_beta_snapshot_25
PNETCDF_VERSION: pnetcdf-1.12.1
NETCDF_FORTRAN_VERSION: v4.5.2
PIO_VERSION: pio-2.5.1
steps:
- uses: actions/checkout@v2
# Build the ESMF library, if the cache contains a previous build
# it will be used instead
- id: cache-esmf
uses: actions/cache@v2
with:
path: ~/ESMF
key: ${{ runner.os }}-${{ env.ESMF_VERSION }}-ESMF
- id: load-env
run: sudo apt-get install gfortran wget openmpi-bin netcdf-bin libopenmpi-dev
- id: build-ESMF
if: steps.cache-esmf.outputs.cache-hit != 'true'
run: |
wget https://github.com/esmf-org/esmf/archive/${{ env.ESMF_VERSION }}.tar.gz
tar -xzvf ${{ env.ESMF_VERSION }}.tar.gz
pushd esmf-${{ env.ESMF_VERSION }}
export ESMF_DIR=`pwd`
export ESMF_COMM=openmpi
export ESMF_YAMLCPP="internal"
export ESMF_INSTALL_PREFIX=$HOME/ESMF
export ESMF_BOPT=g
make
make install
popd
- id: cache-pnetcdf
uses: actions/cache@v2
with:
path: ~/pnetcdf
key: ${{ runner.os }}-${{ env.PNETCDF_VERSION}}-pnetcdf
- name: pnetcdf build
if: steps.cache-pnetcdf.outputs.cache-hit != 'true'
run: |
wget https://parallel-netcdf.github.io/Release/${{ env.PNETCDF_VERSION }}.tar.gz
tar -xzvf ${{ env.PNETCDF_VERSION }}.tar.gz
ls -l
pushd ${{ env.PNETCDF_VERSION }}
./configure --prefix=$HOME/pnetcdf --enable-shared --disable-cxx
make
make install
popd
- name: Cache netcdf-fortran
id: cache-netcdf-fortran
uses: actions/cache@v2
with:
path: ~/netcdf-fortran
key: ${{ runner.os }}-${{ env.NETCDF_FORTRAN_VERSION }}-netcdf-fortran
- name: netcdf fortran build
if: steps.cache-netcdf-fortran.outputs.cache-hit != 'true'
run: |
sudo apt-get install libnetcdf-dev
wget https://github.com/Unidata/netcdf-fortran/archive/${{ env.NETCDF_FORTRAN_VERSION }}.tar.gz
tar -xzvf ${{ env.NETCDF_FORTRAN_VERSION }}.tar.gz
ls -l
pushd netcdf-fortran-*
./configure --prefix=$HOME/netcdf-fortran
make
make install

- name: Cache PIO
id: cache-PIO
uses: actions/cache@v2
with:
path: ~/pio
key: ${{ runner.os }}-${{ env.PIO_VERSION }}.pio
restore-keys: |
${{ runner.os }}-${{ env.NETCDF_FORTRAN_VERSION }}-netcdf-fortran
${{ runner.os }}-${{ env.PNETCDF_VERSION }}-pnetcdf
- name: Build PIO
if: steps.cache-PIO.outputs.cache-hit != 'true'
run: |
wget https://github.com/NCAR/ParallelIO/releases/download/pio_2_5_1/${{ env.PIO_VERSION }}.tar.gz
tar -xzvf ${{ env.PIO_VERSION }}.tar.gz
mkdir build-pio
pushd build-pio
cmake -Wno-dev -DNetCDF_C_LIBRARY=/usr/lib/x86_64-linux-gnu/libnetcdf.so -DNetCDF_C_INCLUDE_DIR=/usr/include -DCMAKE_PREFIX_PATH=/usr -DCMAKE_INSTALL_PREFIX=$HOME/pio -DPIO_HDF5_LOGGING=On -DPIO_USE_MALLOC=On -DPIO_ENABLE_LOGGING=On -DPIO_ENABLE_TIMING=Off -DNetCDF_Fortran_PATH=$HOME/netcdf-fortran -DPnetCDF_PATH=$HOME/pnetcdf ../${{ env.PIO_VERSION }}
make VERBOSE=1
make install
popd

- name: Build CDEPS
run: |
export ESMFMKFILE=$HOME/ESMF/lib/libg/Linux.gfortran.64.openmpi.default/esmf.mk
export PIO=$HOME/pio
git submodule init
git submodule update
mkdir build-cdeps
pushd build-cdeps
cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_Fortran_FLAGS="-g -Wall -ffree-form -ffree-line-length-none" ../
make VERBOSE=1
popd
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "fox"]
path = fox
url = https://github.com/ESMCI/fox.git
39 changes: 29 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,32 +1,51 @@
cmake_minimum_required(VERSION 3.10)

project(NUOPC_DATA_MODELS LANGUAGES Fortran VERSION 0.1)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
include(ExternalProject)
find_package(ESMF REQUIRED)

if (DEFINED CIMEROOT)
message("Using CIME in ${CIMEROOT} with compiler ${COMPILER}")
include(${CASEROOT}/Macros.cmake)
if (${PIO_VERSION} LESS 2)
message( FATAL_ERROR "Version 2 of the PIO library required")
endif()
set(FOX ${LIBROOT})
if (${MPILIB} STREQUAL "mpi-serial")
set(CMAKE_C_COMPILER ${SCC})
set(CMAKE_Fortran_COMPILER ${SFC})
set(CMAKE_CXX_COMPILER ${SCXX})
else()
set(CMAKE_C_COMPILER ${MPICC})
set(CMAKE_Fortran_COMPILER ${MPIFC})
set(CMAKE_CXX_COMPILER ${MPICXX})
endif()
set(CMAKE_Fortran_FLAGS "${FFLAGS} -I${LIBROOT}/include -I${LIBROOT}/finclude -I${LIBROOT}/nuopc/esmf/${NINST_VALUE}/include")
else ()
else()
set(BLD_STANDALONE TRUE)
endif ()
endif()

project(NUOPC_DATA_MODELS LANGUAGES Fortran VERSION 0.1)

list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

message("CMAKE_MODULE_PATH is ${CMAKE_MODULE_PATH}")

find_package(ESMF REQUIRED)
if (DEFINED PIO)
set(PIO_PATH ${PIO})
else()
set(PIO_PATH $ENV{PIO})
endif()
find_package(PIO REQUIRED COMPONENT C Fortran PATH ${PIO_PATH})

if (NOT DEFINED MPILIB OR NOT ${MPILIB} STREQUAL "mpi-serial")
find_package(MPI REQUIRED)
endif()

if(BLD_STANDALONE)
add_subdirectory(share)
list(APPEND EXTRA_LIBS cdeps_share)
list(APPEND EXTRA_INCLUDES "${PIO_INCDIR}" "${CMAKE_BINARY_DIR}/share" )
list(APPEND EXTRA_INCLUDES "${CMAKE_BINARY_DIR}/share" )
endif()


add_subdirectory(fox)
add_subdirectory(streams)
add_subdirectory(dshr)

Expand All @@ -35,4 +54,4 @@ foreach(COMP datm dice dlnd docn drof dwav)
endforeach(COMP)

install(TARGETS streams dshr
LIBRARY DESTINATION lib)
LIBRARY DESTINATION lib)
80 changes: 57 additions & 23 deletions cime_config/buildlib
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@
build cime component model library. This buildlib script is used by all CDEPS components.
"""

import sys, os
import sys, os, time

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..", "..")
_CIMEROOT = os.environ.get("CIMEROOT")
if _CIMEROOT is None:
raise SystemExit("ERROR: must set CIMEROOT environment variable")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

_LIBDIR = os.path.join(_CIMEROOT, "scripts", "Tools")
sys.path.append(_LIBDIR)

from standard_script_setup import *
from CIME.buildlib import parse_input
from CIME.case import Case
Expand All @@ -22,7 +27,6 @@ logger = logging.getLogger(__name__)
def buildlib(bldroot, libroot, case, compname=None):
if bldroot.endswith("obj") and not compname:
compname = os.path.basename(os.path.abspath(os.path.join(bldroot,os.pardir)))
print "HERE compname is {} libroot={} bldroot={}".format(compname, libroot, bldroot)

if case.get_value("DEBUG"):
strdebug = "debug"
Expand All @@ -37,6 +41,7 @@ def buildlib(bldroot, libroot, case, compname=None):
sharedpath = os.path.join(case.get_value("COMPILER"),mpilib,
strdebug, strthread, "nuopc")

exe_root = case.get_value("EXEROOT")

if compname:
s, o, e = run_cmd("make d{}".format(compname), from_dir=bldroot, verbose=True)
Expand All @@ -49,24 +54,44 @@ def buildlib(bldroot, libroot, case, compname=None):
expect(False, "ERROR in {} build {} {}".format(compname,o,e))
else:
logger.info("Running cmake for CDEPS")
srcpath = os.path.join(case.get_value("CIMEROOT"),"src","components","cdeps")

srcpath = os.path.abspath(os.path.join(os.path.dirname(__file__),os.pardir))
cmake_flags = get_standard_cmake_args(case, os.path.join(sharedpath,"cdeps"), shared_lib=True)
ccomp, cxxcomp, fcomp = get_compiler_names(case)

cmake_flags += " -DCMAKE_C_COMPILER={} -DCMAKE_CXX_COMPILER={} -DCMAKE_Fortran_COMPILER={}".format(ccomp, cxxcomp, fcomp)
cmake_flags += " -DCMAKE_INSTALL_PREFIX={} ".format(libroot)
cmake_flags += " -DLIBROOT={} ".format(libroot) + srcpath
# base path of install to be completed by setting DESTDIR in make install
cmake_flags += " -DCMAKE_INSTALL_PREFIX:PATH=/"
cmake_flags += " -DLIBROOT={} ".format(libroot)
cmake_flags += " -DMPILIB={} ".format(mpilib)
cmake_flags += " -DPIO_C_LIBRARY={path}/lib -DPIO_C_INCLUDE_DIR={path}/include ".format(path=os.path.join(case.get_value("EXEROOT"),sharedpath))
cmake_flags += " -DPIO_Fortran_LIBRARY={path}/lib -DPIO_Fortran_INCLUDE_DIR={path}/include ".format(path=os.path.join(case.get_value("EXEROOT"),sharedpath))
cmake_flags += srcpath

latest_src_file = max(all_files_under(srcpath), key=os.path.getmtime)
src_time = os.path.getmtime(latest_src_file)
if os.path.exists(os.path.join(bldroot,"CMakeFiles")):
bld_time = os.path.getmtime(os.path.join(bldroot,"CMakeFiles"))
else:
bld_time = src_time - 1

logger.info("cmake_flags {}".format(cmake_flags))
s,o,e = run_cmd("cmake {} ".format(cmake_flags), from_dir=bldroot, verbose=True)
expect(not s,"ERROR from cmake output={}, error={}".format(o,e))

s,o,e = run_cmd("make install", from_dir=bldroot, verbose=True)
# if any file in src is newer than CmakeFiles in the build directory, rerun cmake
if src_time > bld_time:
logger.info("cmake_flags {}".format(cmake_flags))
s,o,e = run_cmd("cmake {} ".format(cmake_flags), from_dir=bldroot, verbose=True)
expect(not s,"ERROR from cmake output={}, error={}".format(o,e))
else:
# The dwav_lib is the last file built in cdeps, wait for it to be built
dwav_lib = os.path.join(bldroot,"dwav","libdwav.a")
time_to_wait = 300
time_counter = 0
while not os.path.exists(dwav_lib):
time.sleep(1)
time_counter += 1
if time_counter > time_to_wait:
break
expect(time_counter <= time_to_wait," Timeout waiting for {}".format(dwav_lib))
print("HERE exeroot {} bldroot {}".format(exe_root, bldroot))

s,o,e = run_cmd("make install DESTDIR={}".format(libroot), from_dir=bldroot, verbose=True)
expect(not s,"ERROR from make output={}, error={}".format(o,e))


# Link the CDEPS component directories to the location expected by cime
for comp in ("atm", "lnd", "ice", "ocn", "rof", "wav"):
compname = case.get_value("COMP_{}".format(comp.upper()))
Expand All @@ -76,18 +101,27 @@ def buildlib(bldroot, libroot, case, compname=None):
os.rmdir(comppath)
symlink_force(os.path.join(bldroot,compname), comppath)

def all_files_under(path):
"""Iterates through all files that are under the given path."""
for cur_path, dirnames, filenames in os.walk(path):
for filename in filenames:
yield os.path.join(cur_path, filename)

def get_compiler_names(case):
machobj = Machines(machine=case.get_value("MACH"))
machine=case.get_value("MACH")
machobj = Machines(machine=machine)
compobj = Compilers(machobj)
compiler = case.get_value("COMPILER")
if case.get_value("MPILIB") == 'mpi-serial':
ccomp = compobj.get_value("SCC").strip()
cxxcomp = compobj.get_value("SCXX").strip()
fcomp = compobj.get_value("SFC").strip()
print("HERE Compiler {} mach={}".format(compiler, machine))
ccomp = compobj.get_value("SCC",{"COMPILER":compiler,"MACH":machine}).strip()
cxxcomp = compobj.get_value("SCXX",{"COMPILER":compiler}).strip()
fcomp = compobj.get_value("SFC",{"COMPILER":compiler}).strip()
print("HERE the compilers are {} {} {}".format(ccomp,cxxcomp, fcomp))
else:
ccomp = compobj.get_value("MPICC").strip()
cxxcomp = compobj.get_value("MPICXX").strip()
fcomp = compobj.get_value("MPIFC").strip()
ccomp = compobj.get_value("MPICC",{"COMPILER":compiler}).strip()
cxxcomp = compobj.get_value("MPICXX",{"COMPILER":compiler}).strip()
fcomp = compobj.get_value("MPIFC",{"COMPILER":compiler}).strip()

return ccomp, cxxcomp, fcomp

Expand Down
Loading