Skip to content

Commit

Permalink
Fixed CGNS/HDF5 download paths. Hack for bug in cgnslib_f.h. HOPR is …
Browse files Browse the repository at this point in the history
…now FIT FOR GIT.
  • Loading branch information
iagbole committed Dec 11, 2015
1 parent 5ec2e8d commit 1de062f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
share/GNU/
share/INTEL/
share/hdf5-1.8.14.tar.bz2
share/v3.2.1.tar.gz
src/deplist.mk
src/srcfiles_pp.mk
8 changes: 3 additions & 5 deletions Makefile.defs
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,9 @@ TECBIN_LIBS = -ltecio -lstdc++
#---------------------------------------------------------------------------------------------------------------------------------#
# CGNS
#---------------------------------------------------------------------------------------------------------------------------------#
#ifeq ($(findstring OLD,$(CGNS_INPUT)),OLD)
CGNS_VERSION =3.2.1
CGNS_SUBVERSION =2
CGNS_DIR =../share/$(SHARECOMP)/cgnslib_$(CGNS_VERSION)/src
CGNS_LIBDIR =../share/$(SHARECOMP)/cgnslib_$(CGNS_VERSION)/src/lib
CGNS_VERSION=3.2.1
CGNS_DIR =../share/$(SHARECOMP)/CGNS-$(CGNS_VERSION)/src
CGNS_LIBDIR =../share/$(SHARECOMP)/CGNS-$(CGNS_VERSION)/src/lib
CGNS_LIB =-L$(CGNS_LIBDIR)
CGNS_INC =-I$(CGNS_DIR)
CGNS_LIBS =-lcgns
Expand Down
17 changes: 8 additions & 9 deletions share/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ hdf5: dir
echo "= M A K E H D F 5 =";\
echo "===============================================================";\
if [ ! -f hdf5-$(HDF5_VERSION).tar.bz2 ] ; then \
wget -N http://www.hdfgroup.org/ftp/HDF5/prev-releases/hdf5-$(HDF5_VERSION)/src/hdf5-$(HDF5_VERSION).tar.bz2 ; \
wget -N http://www.hdfgroup.org/ftp/HDF5/releases/hdf5-$(HDF5_VERSION)/src/hdf5-$(HDF5_VERSION).tar.bz2 ; \
fi ; \
if [ ! -d $(SHARECOMP)/hdf5-$(HDF5_VERSION) ] ; then \
cd $(SHARECOMP)/ && tar -xvjf ../hdf5-$(HDF5_VERSION).tar.bz2 1>/dev/null && cd .. ; \
Expand All @@ -29,16 +29,16 @@ hdf5: dir
cgns: dir
@# CGNS library (if 64bit needed: set --enable-64bit in configure command and CGNS_INT=64 in Makefile.defs
@ if [ -n "$(CGNS_VERSION)" ] && [ ! -f $(CGNS_LIBDIR)/libcgns.a ] ; then \
# @ if [ -n "$(CGNS_VERSION)" ] && [ ! -f $(SHARECOMP)/cgnslib_$(CGNS_VERSION)/src/lib/libcgns.a ] ; then \
echo "===============================================================";\
echo "= M A K E C G N S =";\
echo "===============================================================";\
if [ ! -f cgnslib_$(CGNS_VERSION)-$(CGNS_SUBVERSION).tar.gz ] ; then \
wget -N http://mesh.dl.sourceforge.net/project/cgns/cgnslib_$(CGNS_VERSION)/Release%20$(CGNS_SUBVERSION)/cgnslib_$(CGNS_VERSION)-$(CGNS_SUBVERSION).tar.gz ; \
if [ ! -f v$(CGNS_VERSION).tar.gz ] ; then \
wget -N https://github.com/CGNS/CGNS/archive/v$(CGNS_VERSION).tar.gz ; \
fi ; \
if [ ! -d $(SHARECOMP)/cgnslib_$(CGNS_VERSION) ] ; then \
cd $(SHARECOMP) && tar -xvzf ../cgnslib_$(CGNS_VERSION)-$(CGNS_SUBVERSION).tar.gz 1>/dev/null && cd .. ; \
if [ ! -d $(SHARECOMP)/CGNS-$(CGNS_VERSION) ] ; then \
cd $(SHARECOMP) && tar -xvzf ../v$(CGNS_VERSION).tar.gz 1>/dev/null && cd .. ; \
fi ; \
sed -i 's/^c/!/g' $(CGNS_DIR)/src/cgnslib_f.h ;\
cd $(CGNS_DIR) && FC='$(FC)' ./configure --enable-lfs $(CGNSF2C) && $(MAKE) ; \
echo "===============================================================";\
echo "= C G N S D O N E =";\
Expand Down Expand Up @@ -71,9 +71,8 @@ cleanhdf5:
fi
cleancgns:
@# CGNS library
@ if [ -d $(SHARECOMP)/cgnslib_$(CGNS_VERSION) ] ; then \
# cd $(SHARECOMP)/cgnslib_$(CGNS_VERSION)/src && $(MAKE) allclean ; \
cd $(CGNS_DIR) && $(MAKE) allclean ; \
@ if [ -d $(SHARECOMP)/CGNS-$(CGNS_VERSION) ] ; then \
cd $(SHARECOMP)/CGNS-$(CGNS_VERSION)/src && $(MAKE) allclean ; \
fi
cleannr:
@# Numerical Recipes
Expand Down

0 comments on commit 1de062f

Please sign in to comment.