Skip to content

Commit 2c0d967

Browse files
eirikurjsseraj
andauthored
Removing CGNS support for versions older than 3.3.0 (#41)
Co-authored-by: Sabet Seraj <[email protected]>
1 parent 2b0f1be commit 2c0d967

File tree

5 files changed

+8
-27
lines changed

5 files changed

+8
-27
lines changed

Hyp_Common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ MAKE_CLEAN_ARGUMENTS = *~ *.o *.mod *.il *.stb c_*
4848
# * *
4949
# ******************************************************************
5050

51-
FF90_ALL_FLAGS = -I$(HYP_MODDIR) $(CGNS_INCLUDE_FLAGS) $(CGNS_VERSION_FLAG) \
51+
FF90_ALL_FLAGS = -I$(HYP_MODDIR) $(CGNS_INCLUDE_FLAGS) \
5252
$(FF90_GEN_FLAGS) $(FF90_OPT_FLAGS) $(PETSC_INCLUDE_FLAGS)
5353

5454
CC_ALL_FLAGS = -I$(HYP_MODDIR) $(CGNS_INCLUDE_FLAGS) \

config/defaults/config.LINUX_GFORTRAN_OPENMPI.mk

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,9 @@ CC = mpicc
1111

1212

1313
# ------- Define CGNS Inlcude and linker flags -------------------------
14-
# Define the CNGS include directory and linking flags for CGNSlib. We
15-
# can use 3.2.x OR CGNS 3.3+. You must define which version is being
16-
# employed as shown below. We are assuming that HDF5 came from PETSc
17-
# so it is included in ${PETSC_LIB}. Otherwise you will have to
18-
# specify the HDF5 library.
19-
20-
# ----------- CGNS ------------------
21-
# CGNS_VERSION_FLAG= # for CGNS 3.2.x
22-
CGNS_VERSION_FLAG=-DUSECGNSMODULE # for CGNS 3.3.x
14+
# Define the CGNS include directory and linking flags for the CGNS library.
15+
# We are assuming that HDF5 came from PETSc so it is included in ${PETSC_LIB}.
16+
# Otherwise you will have to specify the HDF5 library.
2317
CGNS_INCLUDE_FLAGS=-I$(CGNS_HOME)/include
2418
CGNS_LINKER_FLAGS=-L$(CGNS_HOME)/lib -lcgns
2519

config/defaults/config.LINUX_INTEL_OPENMPI.mk

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,9 @@ FF90 = mpif90
1010
CC = mpicc
1111

1212
# ------- Define CGNS Inlcude and linker flags -------------------------
13-
# Define the CNGS include directory and linking flags for CGNSlib. We
14-
# can use 3.2.x OR CGNS 3.3+. You must define which version is being
15-
# employed as shown below. We are assuming that HDF5 came from PETSc
16-
# so it is included in ${PETSC_LIB}. Otherwise you will have to
17-
# specify the HDF5 library.
18-
19-
# ----------- CGNS ------------------
20-
# CGNS_VERSION_FLAG= # for CGNS 3.2.x
21-
CGNS_VERSION_FLAG=-DUSECGNSMODULE # for CGNS 3.3.x
13+
# Define the CGNS include directory and linking flags for the CGNS library.
14+
# We are assuming that HDF5 came from PETSc so it is included in ${PETSC_LIB}.
15+
# Otherwise you will have to specify the HDF5 library.
2216
CGNS_INCLUDE_FLAGS=-I$(CGNS_HOME)/include
2317
CGNS_LINKER_FLAGS=-L$(CGNS_HOME)/lib -lcgns
2418

pyhyp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = "2.3.2"
1+
__version__ = "2.4.0"
22

33
from .pyHyp import pyHyp, pyHypMulti

src/modules/cgnsGrid.F90

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
module cgnsGrid
22

33
use precision
4-
#ifdef USECGNSMODULE
54
use cgns
65
implicit none
7-
#else
8-
implicit none
9-
include "cgnslib_f.h"
10-
integer(kind=4), private :: dummyInt
11-
integer, parameter :: cgsize_t=kind(dummyInt)
12-
#endif
136

147
end module cgnsGrid

0 commit comments

Comments
 (0)