mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-10 14:38:11 -05:00
Test REFPROP too via Python interface as part of the catch tests
Just to be sure
This commit is contained in:
4
.github/workflows/buildREFPROP.sh
vendored
4
.github/workflows/buildREFPROP.sh
vendored
@@ -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
8
.github/workflows/test_REFPROP.py
vendored
Normal 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)
|
||||
1
.github/workflows/test_catch2.yml
vendored
1
.github/workflows/test_catch2.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user