Skip to content

Commit

Permalink
- added warning if number of processors is not given when using hpcom
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18184 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Volker Waurich committed Nov 19, 2013
1 parent 1109bab commit fd52bed
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Compiler/BackEnd/SimCodeMain.mo
Expand Up @@ -387,6 +387,15 @@ algorithm
Integer numProc;
BackendDAE.BackendDAE backendDAE2;
SimCode.SimCode tmpSimCode;

case(_, _, _, _, _, _, _, _, _, _, _, _) equation
true = Flags.isSet(Flags.HPCOM);
numProc = Flags.getConfigInt(Flags.NUM_PROC);
true = numProc == 0;
print("\nWARNING: When using hpcom, you need to set the number of processors with the flag +n= !\n\n");
backendDAE2 = Debug.fcallret3(Flags.PARTLINTORNSYSTEM, HpcOmSimCode.traverseEqSystemsWithIndex, 1,1, inBackendDAE, inBackendDAE);
then HpcOmSimCode.createSimCode(backendDAE2, inClassName, filenamePrefix, inString11, functions, externalFunctionIncludes, includeDirs, libs, simSettingsOpt, recordDecls, literals, args);

case(_, _, _, _, _, _, _, _, _, _, _, _) equation
true = Flags.isSet(Flags.HPCOM);
numProc = Flags.getConfigInt(Flags.NUM_PROC);
Expand Down

0 comments on commit fd52bed

Please sign in to comment.