string Module

Module to convert int, real, or bool to string and concatenate int, real, bool, and string itself to string


Used by

  • module~~string~~UsedByGraph module~string string module~mapping mapping module~mapping->module~string module~read read module~read->module~string module~write_output_vtk write_output_vtk module~write_output_vtk->module~string module~wall wall module~wall->module~string module~write_output write_output module~write_output->module~string module~write_output->module~write_output_vtk module~write_output_tec_node write_output_tec_node module~write_output->module~write_output_tec_node module~write_output_tec write_output_tec module~write_output->module~write_output_tec module~read_output_vtk read_output_vtk module~read_output_vtk->module~string module~source source module~source->module~string module~dump_solution dump_solution module~source->module~dump_solution module~resnorm resnorm module~resnorm->module~string module~write_output_tec_node->module~string module~update update module~update->module~string module~update->module~source module~time time module~update->module~time module~viscous viscous module~update->module~viscous module~summon_grad_evaluation summon_grad_evaluation module~update->module~summon_grad_evaluation module~plusgs plusgs module~update->module~plusgs module~lusgs lusgs module~update->module~lusgs module~interface1 interface1 module~update->module~interface1 module~time->module~string module~time->module~read module~viscous->module~string module~state state module~state->module~string module~read_output read_output module~state->module~read_output module~summon_grad_evaluation->module~string module~plusgs->module~string module~plusgs->module~mapping module~write_output_tec->module~string module~solver solver module~solver->module~string module~solver->module~mapping module~solver->module~read module~solver->module~wall module~solver->module~source module~solver->module~resnorm module~solver->module~update module~solver->module~time module~solver->module~viscous module~solver->module~state module~solver->module~summon_grad_evaluation module~solver->module~dump_solution module~solver->module~interface1 module~grid grid module~solver->module~grid module~dump_solution->module~string module~dump_solution->module~write_output module~read_output->module~string module~read_output->module~read_output_vtk module~read_output_tec read_output_tec module~read_output->module~read_output_tec module~lusgs->module~string module~lusgs->module~mapping module~create_and_erase create_and_erase module~create_and_erase->module~string module~create_and_erase->module~read module~create_and_erase->module~wall module~create_and_erase->module~source module~create_and_erase->module~time module~create_and_erase->module~state module~create_and_erase->module~grid module~read_output_tec->module~string module~interface1->module~mapping module~start_finish start_finish module~start_finish->module~solver module~grid->module~mapping program~main main program~main->module~solver program~main->module~start_finish

Contents


Variables

TypeVisibility AttributesNameInitial
integer, public, parameter:: MAX_STRING_LEN =256
integer, private :: dec_ =6
integer, private :: exp_ =-1
character, private :: form_ ='F'
logical, private :: reset_flag =.FALSE.

Interfaces

public interface tostr

  • public function int_to_str(i) result(a)

    Convert integer to string

    Arguments

    Type IntentOptional AttributesName
    integer, intent(in) :: i

    Return Value character(len=MAX_STRING_LEN)

  • public function real_to_str(r) result(a)

    Convert real number to string

    Arguments

    Type IntentOptional AttributesName
    real, intent(in) :: r

    Return Value character(len=MAX_STRING_LEN)

  • public function bool_to_str(b) result(a)

    Convert boolean variable to string

    Arguments

    Type IntentOptional AttributesName
    logical, intent(in) :: b

    Return Value character(len=MAX_STRING_LEN)

public interface operator( + )

  • public function str_cat_str(s1, s2) result(a)

    Join two string into one string

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: s1
    character(len=*), intent(in) :: s2

    Return Value character(len=MAX_STRING_LEN)

  • public function str_cat_int(s, i) result(a)

    Join a string to a integer and gives result as a string

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: s
    integer, intent(in) :: i

    Return Value character(len=MAX_STRING_LEN)

  • public function int_cat_str(i, s) result(a)

    Join a integer to a string and gives result as a string

    Arguments

    Type IntentOptional AttributesName
    integer, intent(in) :: i
    character(len=*), intent(in) :: s

    Return Value character(len=MAX_STRING_LEN)

  • public function str_cat_real(s, r) result(a)

    Join a string to a real number and gives result as a string

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: s
    real, intent(in) :: r

    Return Value character(len=MAX_STRING_LEN)

  • public function real_cat_str(r, s) result(a)

    Join a real number to a string and gives result as a string

    Arguments

    Type IntentOptional AttributesName
    real, intent(in) :: r
    character(len=*), intent(in) :: s

    Return Value character(len=MAX_STRING_LEN)

  • public function str_cat_bool(s, b) result(a)

    Join a string to a boolean and gives result as a string

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: s
    logical, intent(in) :: b

    Return Value character(len=MAX_STRING_LEN)

  • public function bool_cat_str(b, s) result(a)

    Join a boolean to a string and gives result as a string

    Arguments

    Type IntentOptional AttributesName
    logical, intent(in) :: b
    character(len=*), intent(in) :: s

    Return Value character(len=MAX_STRING_LEN)

public interface len

  • public function intlen(i) result(l)

    Return the "string length of an integer"

    Arguments

    Type IntentOptional AttributesName
    integer, intent(in) :: i

    Return Value integer

  • public function reallen(r) result(l)

    Return the "string length of a real"

    Arguments

    Type IntentOptional AttributesName
    real, intent(in) :: r

    Return Value integer


Functions

public function int_to_str(i) result(a)

Convert integer to string

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: i

Return Value character(len=MAX_STRING_LEN)

public function real_to_str(r) result(a)

Convert real number to string

Arguments

Type IntentOptional AttributesName
real, intent(in) :: r

Return Value character(len=MAX_STRING_LEN)

public function bool_to_str(b) result(a)

Convert boolean variable to string

Arguments

Type IntentOptional AttributesName
logical, intent(in) :: b

Return Value character(len=MAX_STRING_LEN)

public function str_cat_str(s1, s2) result(a)

Join two string into one string

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: s1
character(len=*), intent(in) :: s2

Return Value character(len=MAX_STRING_LEN)

public function str_cat_int(s, i) result(a)

Join a string to a integer and gives result as a string

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: s
integer, intent(in) :: i

Return Value character(len=MAX_STRING_LEN)

public function int_cat_str(i, s) result(a)

Join a integer to a string and gives result as a string

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: i
character(len=*), intent(in) :: s

Return Value character(len=MAX_STRING_LEN)

public function str_cat_real(s, r) result(a)

Join a string to a real number and gives result as a string

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: s
real, intent(in) :: r

Return Value character(len=MAX_STRING_LEN)

public function real_cat_str(r, s) result(a)

Join a real number to a string and gives result as a string

Arguments

Type IntentOptional AttributesName
real, intent(in) :: r
character(len=*), intent(in) :: s

Return Value character(len=MAX_STRING_LEN)

public function str_cat_bool(s, b) result(a)

Join a string to a boolean and gives result as a string

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: s
logical, intent(in) :: b

Return Value character(len=MAX_STRING_LEN)

public function bool_cat_str(b, s) result(a)

Join a boolean to a string and gives result as a string

Arguments

Type IntentOptional AttributesName
logical, intent(in) :: b
character(len=*), intent(in) :: s

Return Value character(len=MAX_STRING_LEN)

public function intlen(i) result(l)

Return the "string length of an integer"

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: i

Return Value integer

public function reallen(r) result(l)

Return the "string length of a real"

Arguments

Type IntentOptional AttributesName
real, intent(in) :: r

Return Value integer


Subroutines

public subroutine chfmt(d, e, f)

Change format specifier for reals

Arguments

Type IntentOptional AttributesName
integer, intent(in), optional :: d
integer, intent(in), optional :: e
character, intent(in), optional :: f

public subroutine disp(s)

Display the contents of the string

Arguments

Type IntentOptional AttributesName
character(len=MAX_STRING_LEN), intent(in) :: s