Menu

#136 Removing unwanted output statements in windows

3.1.3
closed
None
2018-06-28
2018-06-27
No

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.

Discussion

  • Helfer Thomas

    Helfer Thomas - 2018-06-27
    • status: open --> closed
    • Milestone: 3.2 --> 3.1.3
     
  • Helfer Thomas

    Helfer Thomas - 2018-06-27

    Hi Jamel,
    Thank you for this request.

    The integration errors are reported on the standard output, since the Cast3M interface does not have any output for error messages. This can be cumbersome, in particular when driving the simulation from the behaviour.

    The Cast3M interface now checks if the CASTEM_DISPLAY_ERROR_MESSAGE variable environment is defined. If it is set to any value different from true, no error message is displayed.

    In bash:

    export CASTEM_DISPLAY_ERROR_MESSAGE=true
    

    In the Windows shell:

    set CASTEM_DISPLAY_ERROR_MESSAGE=true
    

    This has been integrated:
    -in revision 2124 in rliv-3.1
    -in revision 2125 in trunk

    Regards,

    Thomas

     
  • Jamel Eddine TIRARI

    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.

     
  • Helfer Thomas

    Helfer Thomas - 2018-06-28

    Well, I just tested it, and its works...
    Did you make a git pull and recompile MFront ?

     
  • Jamel Eddine TIRARI

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB