Cantera / cantera

Chemical kinetics, thermodynamics, and transport tool suite
https://cantera.org
Other
582 stars 342 forks source link

f90_demo test fails on macOS #1564

Closed ischoegl closed 11 months ago

ischoegl commented 11 months ago

Problem description

scons test-f90-demo produces an error

Steps to reproduce

  1. Compile main with f90_interface=y
  2. Run scons test-f90-demo
  3. See error '....'
* Running test 'f90-demo'...
ERROR: FAILED (program exit code:-6)
Found differences between /Volumes/Data/work/GitHub/cantera/test_problems/fortran/f90_demo_blessed.txt and /Volumes/Data/work/GitHub/cantera/test_problems/fortran/f90_demo_output.txt:
>>>
---

+++

@@ -11,99 +11,25 @@

 Molar cp:          27056.     J/kmol-K

- Equilibrium state properties:
+libc++abi: terminating due to uncaught exception of type Cantera::CanteraError:
+*******************************************************************************
+CanteraError thrown by ThermoPhase::equilibrate:
+Invalid solver specified: ''
+*******************************************************************************

-Temperature:       2800.9     K
-Pressure:         0.10133E+06 Pa
-Density:          0.13658     kg/m3
-Molar Enthalpy:   0.25920E+08 J/kmol
-Molar Entropy:    0.24314E+06 J/kmol-K
-Molar cp:          32363.     J/kmol-K
+Program received signal SIGABRT: Process abort signal.

+Backtrace for this error:
+#0  0x10559b477
+#1  0x10559a433
+#2  0x1a132ea23
+#3  0x1a12ffc27
+#4  0x1a120dae7
+#5  0x1a12b8b83
+#6  0x1a12a83b3
+#7  0x1a0f7f03b
+#8  0x1a12b7f47
+#9  0x1a12bad33
+#10  0x1a12bacdf

-2 O + M <=> O2 + M            0.56821E-02   0.56821E-02  -0.86736E-17 kmol/m3/s
[...]
<<<
FAILED

System information

% gcc --version
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
% gfortran --version
GNU Fortran (Homebrew GCC 12.2.0) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Other

This may be related to the issues reported in #1379 (with preliminary findings https://github.com/Cantera/cantera/issues/1379#issuecomment-1418240342)

speth commented 11 months ago

Of course this is the same as #1379. It's just two slightly different ways of compiling the same program. I don't think we need two issues to track the problem.

ischoegl commented 11 months ago

Yup. Got there using a different (more standard) approach. As your explanation in #1379 already points to the core issue, I am closing this one here.