xgcm / aerobulk-python

A python wrapper for aerobulk (https://github.com/brodeau/aerobulk)
GNU General Public License v3.0
14 stars 4 forks source link

Failure to run fortran tests locally #9

Closed jbusecke closed 2 years ago

jbusecke commented 2 years ago

I am trying to run the fortran tests locally to get some benchmark values that can be hardcoded into a python test (parameterized per algo used).

The steps I have followed so far

  1. Clone a fresh version of aerobulk to my local machine
  2. Compile Aerobulk on a conda env that contains numpy and gfortran a. Copy the macro file with cp arch/make.macro_GnuLinux make.macro b. (Optional only for mac) Edit the line FF += -std=gnu -lstdc++ to FF += -std=gnu c. Run make

Now I have a bunch of executables in ./bin. I can successfully run ./bin/example_call_aerobulk.x but when I try to do ./bin/aerobulk_toy.x I get the following error:

At line 64 of file src/tests/aerobulk_toy.f90 (unit = 6, file = 'stdout')
Fortran runtime error: Cannot change RECL parameter in OPEN statement

Error termination. Backtrace:
#0  0x10544f6f7
#1  0x1054505df
#2  0x105450ff3
#3  0x1056c8ab7
#4  0x1056c98f7
#5  0x104da0deb
#6  0x104dc99ff

I am not quite sure how to proceed from here. It might be useful if somebody with a non-mac computer could try to reproduce this? cc @TomNicholas.