Skip to content

Commit

Permalink
makes the OpenCASCADE version generic
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Jul 23, 2021
1 parent 7e392ee commit a9fa776
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions misc/module-builder/k/esp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ wget --no-check-certificate https://acdl.mit.edu/ESP/PreBuilts/ESP${VERSION}Lin.
mkdir ${MODULE_DEST}
tar xzf ESP${VERSION}Lin.tgz -C ${MODULE_DEST} --strip-components=1

# insulate linking from OpenCASCADE path version
(cd ${MODULE_DEST} && ln -s OpenCASCADE-* OpenCASCADE)

mkdir -p ${MODFILE_BASE}
cat > ${MODFILE_DEST} << EOF
#%Module#
Expand All @@ -44,12 +47,12 @@ if { \$modmode != "switch3" } {
}
setenv ESP_ROOT \$base/\$version/EngSketchPad
setenv CASROOT \$base/\$version/OpenCASCADE-7.3.1
setenv CASROOT \$base/\$version/OpenCASCADE
prepend-path PATH \$base/\$version/EngSketchPad/bin
prepend-path LD_LIBRARY_PATH \$base/\$version/EngSketchPad/lib
prepend-path LD_LIBRARY_PATH \$base/\$version/OpenCASCADE-7.3.1/lib
prepend-path LD_LIBRARY_PATH \$base/\$version/OpenCASCADE/lib
EOF

Expand Down
4 changes: 2 additions & 2 deletions misc/module-builder/k/refine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ cd _build_$VERSION

../${TOPDIR}/configure \
--prefix=${MODULE_DEST} \
--with-mpi=/opt/hpe/hpc/mpt/mpt-2.19 \
--with-mpi=/opt/hpe/hpc/mpt/mpt-${MPT_VERSION} \
--with-metis=${MODULE_ROOT}/${PARMETIS} \
--with-parmetis=${MODULE_ROOT}/${PARMETIS} \
--with-EGADS=${MODULE_ROOT}/${ESP}/EngSketchPad \
--with-OpenCASCADE=${MODULE_ROOT}/${ESP}/OpenCASCADE-7.3.1 \
--with-OpenCASCADE=${MODULE_ROOT}/${ESP}/OpenCASCADE \
CC=icc \
CFLAGS='-g -O2 -traceback -Wall -w3 -wd1418,2259,2547,981,11074,11076,1572,49,1419 -ftrapuv'

Expand Down

0 comments on commit a9fa776

Please sign in to comment.