[38ba34]: / Tests / BM combinations / test_bm_compatibility_switches.any

Download this file

27 lines (20 with data), 767 Bytes

//define = [ 
//    {},
//    {'BM_COMPATIBILITY_24_TRUNK_SELECTED_OUTPUTS_JRF':'ON'},
//]

#include "libdef.any"

#ifndef TEST_NAME
//#define BM_COMPATIBILITY_24_TRUNK_SELECTED_OUTPUTS_JRF ON
#endif



Main = 
{
  // #path HTML_DOC "<AMMR_PATH_DOC>/bm_config/index.html"
  #include "<ANYBODY_PATH_BODY>\HumanModel.any"
  
  AnyOperationDummy RunApplication = {};
  
  AnyObjectPtr trunk_24_compatibility = ObjSearch("Main.HumanModel.BodyModel.SelectedOutput.Trunk.JointReactionForce.C2C1FlexionExtensionMoment");
  #if BM_COMPATIBILITY_24_TRUNK_SELECTED_OUTPUTS_JRF  
  AnyInt ShouldNotExist = assert(eqfun(NumElemOf(trunk_24_compatibility),1));
  #else
  AnyInt ShouldExist = assert(eqfun(NumElemOf(trunk_24_compatibility),0));
  #endif
};