Skip to content

Commit 3f1995f

Browse files
committed
Also call the shared library to make sure it is functional
1 parent c9c139e commit 3f1995f

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

decrypt.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ git clone --recursive https://github.com/usnistgov/REFPROP-cmake
1212
cd REFPROP-cmake
1313
cmake -B bld -S . -DCMAKE_BUILD_TYPE=Release -DREFPROP_FORTRAN_PATH=`pwd`/../FORTRAN
1414
cmake --build bld --config Release
15+
16+
pip install ctREFPROP
17+
COOLPROP_REFPROP_ROOT=`pwd`/REFPROPungpg/REFPROP-cmake/bld python test_REFPROP.py

test_REFPROP.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import os
2+
import ctREFPROP.ctREFPROP as ct
3+
root = os.getenv("COOLPROP_REFPROP_ROOT")
4+
RP = ct.REFPROPFunctionLibrary(root)
5+
RP.SETPATHdll(root)
6+
r = RP.REFPROPdll('WATER','PQ','T',RP.MOLAR_BASE_SI,0,0,101325,0,[1.0])
7+
if r.ierr != 0:
8+
raise ValueError(r.herr)

0 commit comments

Comments
 (0)