Skip to content

CFAST compiled with gnu_win can't finish any input file computation #2231

@bewygs

Description

@bewygs

Hi,

I found a bug when compiling CFAST from source code on windows with gfortran where it can't launch any input file. I use the DOE201 verification example as input file but it won't work for any input file.

Steps to reproduce the error (Windows cmd):

git clone https://github.com/firemodels/cfast.git
cd cfast\Build\CFAST\gnu_win
.\make_cfast.bat
copy ..\..\..\Verification\DOE_Guidance_Report\DOE201.in . # copying any input file will reproduce the error
cfast7_win.exe DOE201.in

The computation never finishes (I have a CI run in my project where it hits the github actions time limit). With the Intel compiler, I do not encounter this bug.

My spec :

  • OS: Win 11
  • CFAST version: latest commit
  • gfortran version: 13.2.0 (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders, r8)

Workaround:
If I edit the gnu_win section in the Makefile and compile with the optimization flag -O0 instead of -O2, the issue disappears and DOE201 runs normally. I can open a PR to adress that.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions