jowr / librefprop.so

Create a shared library from the Fortran sources provided by Refprop from NIST. This project provides an alternative to the refprop.dll that comes with the software. Please use the official instructions if possible

Home Page:https://github.com/usnistgov/REFPROP-cmake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make fixfiles.sh architecture-aware

jowr opened this issue · comments

Edit the script that changes the Matlab function prototypes.

@jowr 'uname -m' is not ideal it forces me to detect only 64 bits and assume that everything else is 32 bits ; not bad, but not so good either ; could you test the command 'getconf LONG_BIT' and tell me if hopefully it returns 32 ? :-D

That one is spot on. In my makefiles for other projects I use the following:

UNAME := $(shell uname -s)
ARCH  := $(shell getconf LONG_BIT)

This gives Darwin or Linux and 32 or 64 on most machines.

Perfect! I keep that one, so :-)

Pull request on Issue #16 should allow to close this issue.