Test REFPROP too via Python interface as part of the catch tests

Just to be sure
This commit is contained in:
Ian Bell
2025-04-06 18:42:33 -04:00
parent 9949510bb7
commit 06858ec46e
3 changed files with 13 additions and 0 deletions

View File

@@ -12,4 +12,8 @@ git clone --recursive https://github.com/usnistgov/REFPROP-cmake
cd REFPROP-cmake
cmake -B bld -S . -DCMAKE_BUILD_TYPE=Release -DREFPROP_FORTRAN_PATH=`pwd`/../REFPROP/FORTRAN
cmake --build bld --config Release
cp -r `pwd`/../REFPROP/FLUIDS `pwd`/bld
cp -r `pwd`/../REFPROP/MIXTURES `pwd`/bld
pip install ctREFPROP
COOLPROP_REFPROP_ROOT=`pwd`/bld python test_REFPROP.py

8
.github/workflows/test_REFPROP.py vendored Normal file
View File

@@ -0,0 +1,8 @@
import os
import ctREFPROP.ctREFPROP as ct
root = os.getenv("COOLPROP_REFPROP_ROOT")
RP = ct.REFPROPFunctionLibrary(root)
RP.SETPATHdll(root)
r = RP.REFPROPdll('WATER','PQ','T',RP.MOLAR_BASE_SI,0,0,101325,0,[1.0])
if r.ierr != 0:
raise ValueError(r.herr)

View File

@@ -31,6 +31,7 @@ jobs:
chmod +x buildREFPROP.sh
./buildREFPROP.sh
pwd
tree `pwd`/bld
echo COOLPROP_REFPROP_ROOT=`pwd`/bld >> $GITHUB_ENV
env:
REFPROP_GPG_PASSPHRASE: ${{ secrets.REFPROP_GPG_PASSPHRASE }}