Skip to content

Commit

Permalink
Removing CGNS support for versions older than 3.3.0 (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikurj authored Mar 4, 2021
1 parent bfd8c0b commit 5bcdcff
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 38 deletions.
1 change: 0 additions & 1 deletion Common_CS.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ MAKE_CLEAN_ARGUMENTS = *~ *.o *.mod *.il *.stb c_* *.so

FF90_ALL_FLAGS = -I$(MODDIR) -I. \
$(CGNS_INCLUDE_FLAGS) \
$(CGNS_VERSION_FLAG) \
$(FF90_GEN_FLAGS) \
$(FF90_OPT_FLAGS) \
$(PETSC_INCLUDE_FLAGS) \
Expand Down
1 change: 0 additions & 1 deletion Common_real.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ MAKE_CLEAN_ARGUMENTS = *~ *.o *.mod *.il *.stb c_* *.so

FF90_ALL_FLAGS = -I$(MODDIR) \
$(CGNS_INCLUDE_FLAGS) \
$(CGNS_VERSION_FLAG) \
$(FF90_GEN_FLAGS) \
$(FF90_OPT_FLAGS) \
$(PETSC_INCLUDE_FLAGS)
Expand Down
12 changes: 3 additions & 9 deletions config/defaults/config.LINUX_GFORTRAN_OPENMPI.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,9 @@ CC = mpicc


# ------- Define CGNS Inlcude and linker flags -------------------------
# Define the CNGS include directory and linking flags for CGNSlib. We
# can use 3.2.x OR CGNS 3.3+. You must define which version is being
# employed as shown below. We are assuming that HDF5 came from PETSc
# so it is included in ${PETSC_LIB}. Otherwise you will have to
# specify the HDF5 library.

# ----------- CGNS ------------------
# CGNS_VERSION_FLAG= # for CGNS 3.2.x
CGNS_VERSION_FLAG=-DUSECGNSMODULE # for CGNS 3.3.x
# Define the CGNS include directory and linking flags for the CGNS library.
# We are assuming that HDF5 came from PETSc so it is included in ${PETSC_LIB}.
# Otherwise you will have to specify the HDF5 library.
CGNS_INCLUDE_FLAGS=-I$(CGNS_HOME)/include
CGNS_LINKER_FLAGS=-L$(CGNS_HOME)/lib -lcgns

Expand Down
12 changes: 3 additions & 9 deletions config/defaults/config.LINUX_INTEL_OPENMPI.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@ FF90 = mpif90
CC = mpicc

# ------- Define CGNS Inlcude and linker flags -------------------------
# Define the CNGS include directory and linking flags for CGNSlib. We
# can use 3.2.x OR CGNS 3.3+. You must define which version is being
# employed as shown below. We are assuming that HDF5 came from PETSc
# so it is included in ${PETSC_LIB}. Otherwise you will have to
# specify the HDF5 library.

# ----------- CGNS ------------------
# CGNS_VERSION_FLAG= # for CGNS 3.2.x
CGNS_VERSION_FLAG=-DUSECGNSMODULE # for CGNS 3.3.x
# Define the CGNS include directory and linking flags for the CGNS library.
# We are assuming that HDF5 came from PETSc so it is included in ${PETSC_LIB}.
# Otherwise you will have to specify the HDF5 library.
CGNS_INCLUDE_FLAGS=-I$(CGNS_HOME)/include
CGNS_LINKER_FLAGS=-L$(CGNS_HOME)/lib -lcgns

Expand Down
12 changes: 3 additions & 9 deletions config/defaults/config.OSX_GFORTRAN_OPENMPI.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@ FF90 = mpif90
CC = mpicc

# ------- Define CGNS Inlcude and linker flags -------------------------
# Define the CNGS include directory and linking flags for CGNSlib. We
# can use 3.2.x OR CGNS 3.3+. You must define which version is being
# employed as shown below. We are assuming that HDF5 came from PETSc
# so it is included in ${PETSC_LIB}. Otherwise you will have to
# specify the HDF5 library.

# ----------- CGNS ------------------
# CGNS_VERSION_FLAG= # for CGNS 3.2.x
CGNS_VERSION_FLAG=-DUSECGNSMODULE # for CGNS 3.3.x
# Define the CGNS include directory and linking flags for the CGNS library.
# We are assuming that HDF5 came from PETSc so it is included in ${PETSC_LIB}.
# Otherwise you will have to specify the HDF5 library.
CGNS_INCLUDE_FLAGS=-I$(CGNS_HOME)/include
CGNS_LINKER_FLAGS=-L$(CGNS_HOME)/lib -lcgns

Expand Down
2 changes: 1 addition & 1 deletion idwarp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.3.0"
__version__ = "2.4.0"

from .UnstructuredMesh import USMesh
from .MultiUnstructuredMesh import MultiUSMesh
Expand Down
9 changes: 1 addition & 8 deletions src/modules/cgnsGrid.F90
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
module cgnsGrid
!
!
! A module to hold the data structures to store information related
! to a structured or unstructured CGNS grid
!
use constants

#ifdef USECGNSMODULE
use cgns
implicit none
#else
implicit none
include "cgnslib_f.h"
integer(kind=4), private :: dummyInt
integer, parameter :: cgsize_t=kind(dummyInt)
#endif

save

Expand Down

0 comments on commit 5bcdcff

Please sign in to comment.