Helper routine to assemble LOCATION
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename | |||
integer, | intent(in) | :: | lineNr |
FUNCTION dbcsr__l(filename, lineNr) RESULT(location) !! Helper routine to assemble __LOCATION__ CHARACTER(len=*), INTENT(in) :: filename INTEGER, INTENT(in) :: lineNr CHARACTER(len=default_string_length) :: location CHARACTER(len=15) :: lineNr_str WRITE (lineNr_str, FMT='(I10)') lineNr location = TRIM(filename)//":"//TRIM(ADJUSTL(lineNr_str)) END FUNCTION dbcsr__l