Function memoryhelpermodule::mem_check_length

Function Documentation

subroutine memoryhelpermodule::mem_check_length(name, max_length, description)

Generic routine to check the length of (parts of) the memory address.

The string will be trimmed before the measurement.

The description should describe the part of the address that is checked (variable, package, model, solution, exchange name) or the full memory path itself

Warning

{if the length exceeds the maximum, a message is recorded and the program will be stopped}

Parameters
  • [in] name: string to be checked

  • [in] max_length: maximum length

  • [in] description: a descriptive string