(git:6a2e663)
cp_parser_inpp_methods Module Reference

a module to allow simple internal preprocessing in input files. More...

Functions/Subroutines

subroutine, public inpp_process_directive (inpp, input_line, input_file_name, input_line_number, input_unit)
 process internal preprocessor directives like @INCLUDE, @SET, @IF/@ENDIF More...
 
subroutine, public inpp_end_include (inpp, input_file_name, input_line_number, input_unit)
 Restore older file status from stack after EOF on include file. More...
 
subroutine, public inpp_expand_variables (inpp, input_line, input_file_name, input_line_number)
 expand all ${VAR} or $VAR variable entries on the input string (LTR, no nested vars) More...
 

Detailed Description

a module to allow simple internal preprocessing in input files.

History
  • standalone proof-of-concept implementation (20.02.2008,AK)
  • integration into cp2k (22.02.2008,tlaino)
  • variables added (23.02.2008,AK)
  • @IF/@ENDIF added (25.02.2008,AK)
  • @PRINT and debug ifdefs added (26.02.2008,AK)
Author
Axel Kohlmeyer [AK] - CMM/UPenn Philadelphia
Date
20.02.2008

Function/Subroutine Documentation

◆ inpp_process_directive()

subroutine, public cp_parser_inpp_methods::inpp_process_directive ( type(inpp_type), pointer  inpp,
character(len=*), intent(inout)  input_line,
character(len=*), intent(inout)  input_file_name,
integer, intent(inout)  input_line_number,
integer, intent(inout)  input_unit 
)

process internal preprocessor directives like @INCLUDE, @SET, @IF/@ENDIF

Parameters
inpp...
input_line...
input_file_name...
input_line_number...
input_unit...
History
  • standalone proof-of-concept implementation (20.02.2008,AK)
  • integration into cp2k (22.02.2008,tlaino)
  • variables added (23.02.2008,AK)
  • @IF/@ENDIF added (25.02.2008,AK)
Author
AK

Definition at line 83 of file cp_parser_inpp_methods.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ inpp_end_include()

subroutine, public cp_parser_inpp_methods::inpp_end_include ( type(inpp_type), pointer  inpp,
character(len=*), intent(inout)  input_file_name,
integer, intent(inout)  input_line_number,
integer, intent(inout)  input_unit 
)

Restore older file status from stack after EOF on include file.

Parameters
inpp...
input_file_name...
input_line_number...
input_unit...
History
  • standalone proof-of-concept implementation (20.02.2008,AK)
  • integrated into cp2k (21.02.2008)
Author
AK

Definition at line 514 of file cp_parser_inpp_methods.F.

Here is the caller graph for this function:

◆ inpp_expand_variables()

subroutine, public cp_parser_inpp_methods::inpp_expand_variables ( type(inpp_type), pointer  inpp,
character(len=*), intent(inout)  input_line,
character(len=*), intent(inout)  input_file_name,
integer, intent(in)  input_line_number 
)

expand all ${VAR} or $VAR variable entries on the input string (LTR, no nested vars)

Parameters
inpp...
input_line...
input_file_name...
input_line_number...
History
  • standalone proof-of-concept implementation (22.02.2008,AK)
  • integrated into cp2k (23.02.2008)
Author
AK

Definition at line 544 of file cp_parser_inpp_methods.F.

Here is the call graph for this function:
Here is the caller graph for this function: