Open happyKitesurfer opened 2 hours ago
Even if I type
executor GPU;
in the controlDict It goes to the end of the if else conditions
I think dict.get
returns a word object, i.e., https://www.openfoam.com/documentation/guides/latest/api/classFoam_1_1word.html.
Maybe the == operator gets fooled :)
Ok the topic of comparing word with string was already discussed here:
the solution is to convert the string to a word and compare to the dictionary entry
Thanks for reporting!
Fix should be in PR #23
I wrote in the control dict
executor LPU;
However the application does not crash as supposed in setup.cpp:
NeoFOAM::Executor createExecutor(const dictionary& dict) { auto execName = dict.get("executor");
}
It actually goes always to the end of the if else conditions