CP2K 2.5 (Revision 12981)
Classes | Namespaces | Functions | Variables

cp_parser_methods.f90 File Reference

#include "cp_common_uses.h"
Include dependency graph for cp_parser_methods.f90:

Go to the source code of this file.

Classes

interface  cp_parser_methods::parser_get_object

Namespaces

namespace  cp_parser_methods
 

Utility routines to read data from files. Kept as close as possible to the old parser because 1. string handling is a weak point of fortran compilers, and it is easy to write correct things that do not work 2. conversion of old code.


Functions

CHARACTER(len=&default_path_length+default_string_length
&), public 
cp_parser_methods::parser_location (parser, error)
 return a description of the part of the file acually parsed
subroutine cp_parser_methods::parser_store_status (parser, error)
 store the present status of the parser
subroutine cp_parser_methods::parser_retrieve_status (parser, error)
 retrieve the original status of the parser
subroutine, public cp_parser_methods::parser_read_line (parser, nline, at_end, error)
 Read the next line from a logical unit "unit" (I/O node only). Skip (nline-1) lines and skip also all comment lines.
subroutine cp_parser_methods::parser_get_line_from_buffer (parser, istat, error)
 Retrieving lines from buffer.
subroutine cp_parser_methods::parser_read_line_low (parser, error)
 Low level reading subroutine with buffering.
subroutine cp_parser_methods::broadcast_input_information (parser, error)
 Broadcast the input information.
LOGICAL cp_parser_methods::is_comment_line (parser, line)
 returns .true. if the line is a comment line or an empty line
LOGICAL cp_parser_methods::is_comment (parser, testchar)
 returns .true. if the character passed is a comment character
subroutine, public cp_parser_methods::parser_get_next_line (parser, nline, at_end, error)
 Read the next input line and broadcast the input information. Skip (nline-1) lines and skip also all comment lines.
subroutine, public cp_parser_methods::parser_skip_space (parser, error)
 Skips the whitespaces.
subroutine cp_parser_methods::parser_next_token (parser, string_length, error)
 Get the next input string from the input line.
CHARACTER(LEN=3), public cp_parser_methods::parser_test_next_token (parser, string_length, error)
 Test next input object.

  • test_result : "EOL": End of line
  • test_result : "EOS": End of section
  • test_result : "FLT": Floating point number
  • test_result : "INT": Integer number
  • test_result : "STR": String.

subroutine, public cp_parser_methods::parser_search_string (parser, string, ignore_case, found, line, begin_line, search_from_begin_of_file, error)
 Search a string pattern in a file defined by its logical unit number "unit". A case sensitive search is performed, if ignore_case is .FALSE.. begin_line: give back the parser at the beginning of the line matching the search.
LOGICAL cp_parser_methods::integer_object (string)
 Check, if the string object contains an object of type integer.
LOGICAL cp_parser_methods::is_integer (string)
subroutine cp_parser_methods::parser_get_integer (parser, object, newline, skip_lines, string_length, at_end, error)
 Read an integer number.
subroutine cp_parser_methods::parser_get_logical (parser, object, newline, skip_lines, string_length, at_end, error)
 Read a string representing logical object.
subroutine cp_parser_methods::parser_get_real (parser, object, newline, skip_lines, string_length, at_end, error)
 Read a floating point number.
subroutine cp_parser_methods::parser_get_string (parser, object, lower_to_upper, newline, skip_lines, string_length, at_end, error)
 Read a string.
subroutine, public cp_parser_methods::read_float_object (string, object, error_message)
 Returns a floating point number read from a string including fraction like z1/z2.
subroutine cp_parser_methods::read_integer_object (string, object, error_message)
 Returns an integer number read from a string including products of integer numbers like iz1*iz2*iz3.

Variables

CHARACTER(len=*), parameter,
private 
cp_parser_methods::moduleN = 'cp_parser_methods'