View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004064 | OpenFOAM | Bug | public | 2024-03-15 12:50 | 2024-03-15 15:05 |
Reporter | Apanasevich | Assigned To | will | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | amd64 | OS | Rocky Linux | OS Version | 8.6 |
Product Version | dev | ||||
Fixed in Version | dev | ||||
Summary | 0004064: Module functions: typo in key "subSolver" leads to an endless loop | ||||
Description | Typo in key "subSolver" (e.g. "subsolver") in controlDict causes an endless loop at the simulation start and the simulation aborts immediately. A test case with multiphaseFlow and functions is attached: s. the log file | ||||
Steps To Reproduce | Run the attached test case | ||||
Tags | No tags attached. | ||||
|
|
|
This is due to the need to default to reading the "solver" name in the post-processing context: // Read the solverName from the subSolver or solver entry in controlDict const word solverName ( runTime.controlDict().found("subSolver") ? runTime.controlDict().lookup("subSolver") : runTime.controlDict().lookup("solver") ); The only way around this would be to check for all the different ways that "subSolver" might be incorrectly spelled by the user. |
|
The following is not ideal, but at least it follows most of OpenFOAM's convention of exiting when something essential isn't found: if (!runTime.controlDict().found("subSolver") && !runTime.controlDict().found("solver")) { FatalError... } // Read the solverName from the subSolver or solver entry in controlDict const word solverName ( runTime.controlDict().found("subSolver") ? runTime.controlDict().lookup("subSolver") : runTime.controlDict().lookup("solver") ); |
|
Fixed in dev by https://github.com/OpenFOAM/OpenFOAM-dev/commit/d8df5789203b9e0320bc298879afc35e1a679d26 |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-03-15 12:50 | Apanasevich | New Issue | |
2024-03-15 12:50 | Apanasevich | File Added: bubbleColumn_functions_bug.zip | |
2024-03-15 13:55 | henry | Note Added: 0013213 | |
2024-03-15 14:38 | wyldckat | Note Added: 0013215 | |
2024-03-15 15:05 | will | Assigned To | => will |
2024-03-15 15:05 | will | Status | new => resolved |
2024-03-15 15:05 | will | Resolution | open => fixed |
2024-03-15 15:05 | will | Fixed in Version | => dev |
2024-03-15 15:05 | will | Note Added: 0013216 |