Hi,
I'm using mfront and mtest in windows with Castem interface. In my behaviour, i have a criterion that discretises the time automatically if it's not satistied. The problem is, for each discretisation the cmd window outputs the following statement : " The behaviour 'Potentiel1Plasticity' has thrown an CastemException : behaviour integration failed : integration failed for behaviour 'Potentiel1Plasticity' "
This dramatically slows down the process ! any help ?
PS : i use --verbose=quiet in the 'launch_mtest.bat' file
Here is the implementation of the criterion that forces the auomatic discretisation :
@APosterioriTimeStepScalingFactor {
if (Crit_dp_ON) {
if (dp > Crit_dp) {
return {false, max((Crit_dp / dp), 0.5)};
} else {
return {true, min(dp / Crit_dp, 1.2)};
}
}
return {true, real(1)};
}
Thanks in advance,
Jamel Eddine TIRARI.
Hi Jamel,
Thank you for this request.
The integration errors are reported on the standard output, since the
Cast3Minterface does not have any output for error messages. This can be cumbersome, in particular when driving the simulation from the behaviour.The
Cast3Minterface now checks if theCASTEM_DISPLAY_ERROR_MESSAGEvariable environment is defined. If it is set to any value different fromtrue, no error message is displayed.In
bash:In the
Windowsshell:This has been integrated:
-in revision 2124 in
rliv-3.1-in revision 2125 in
trunkRegards,
Thomas
Hello Thomas,
Thanks for the solution. Unfortunately, it didn't work for me ! i added this line :
set CASTEM_DISPLAY_ERROR_MESSAGE=false
in my "launch_mtest.bat" file but no changes happened in the output !
i'm running the latest version of Mfront, compiled with VS2017 and Cmake v3.11.1 on a 64-bit win7 machine in which Castem 2017 is installed, here is what i get when i check the version of Mfront : Version : 3.2.0-dev
is there anything that i'm missing ? Thanks in advance.
Best Regards,
Jamel.
Well, I just tested it, and its works...
Did you make a
git pulland recompileMFront?Oops, my bad i didn't realise that it's that recent ! i recompiled now and it's working just fine. Thanks Thomas.
Best Regards,
Jamel.