*/
private static int OK = 0;
private static int ERROR = 1;
+ private static int PENDING = 2;
private static String UNSATISFIED_LINK = "Method not found. DLL might not be loaded properly.";
public static final String TEMP_FMU_DIRECTORY_NAME = "fmil";
public static String TEMP_FMU_COMMON_DIRECTORY;
try {
- int ret = simulateStep_(getModelIDNew());
- if(ret != OK)
+ int ret = simulateStep_(getModelIDNew()); //0 is ok, 1 is error, 2 is pending
+ if(ret == PENDING)
+ LOGGER.warn("Pending status return from FMU. This is not implemented in our Simulator yet!");
+ else if(ret != OK)
LOGGER.warn("Function return value != OK, an exception should have been thrown from native code!");
-
} catch (FMILException e) {
throw e;
} catch (UnsatisfiedLinkError err) {