FMP_arg

Convert argument

H_ERROR FMP_arg(char* argName,char* valArg , char** arg)
  • Input:
    • argName: argument name
    • valArg: argument value
  • Output:
    • arg: convert argument
  • Return:
    • error handle (NULL=OK)

Predefined arguments

Name Description Default value
LANGUAGE_LABEL

Language:

1  French

2  English

2
CONSOLE_LABEL

Display the console:

YES  Display

GUI_MEMORY_LABEL Java memory in MB 600
CHARACTER_MEMORY_LABEL Characters memory in B 50000000
NUMERICAL_MEMORY_LABEL Numerical memory in B 500000000

Example:

char** Args;
…
Args = malloc(2*sizeof(char*));
Args[0]=FMP_arg(NUMERICAL_MEMORY_LABEL,"600000000");
Args[1]=FMP_arg(LANGUAGE_LABEL,"2");

Other available arguments:

Name Description Default value
EXT_MACRO_DIR Macro directory ${SERVER_INSTALL_DIR}/Extensions/Macros
EXT_OVERLAY_DIR Overlays directory ${SERVER_INSTALL_DIR}/Overlays
FLUX_NCORES Number of cores
USER_CLASS_PATH User class path
USER_JYTHON_PATH Jython user path
USER_LIB_PATH Library user path
USER_PATH User version path

Example:

char** Args;
…
Args = malloc(2*sizeof(char*));
Args[0]=FMP_arg("FLUX_NCORES","4");