M_prep Module


Uses


Contents


Variables

TypeVisibilityAttributesNameInitial
character(len=:), public, allocatable, save:: G_MAN
logical, public, save:: G_MAN_COLLECT =.false.
character(len=:), public, allocatable:: G_MAN_FILE
character(len=10), public :: G_MAN_FILE_POSITION ='ASIS      '
logical, public, save:: G_MAN_PRINT =.false.
character(len=:), public, allocatable, save:: G_cmd
character(len=:), public, allocatable:: G_comment
integer, public :: G_comment_count =0
character(len=10), public :: G_comment_style =' '
logical, public, save:: G_condop(0:G_nestl_max)
logical, public :: G_cpp
logical, public :: G_dc
logical, public, save:: G_debug =.false.
logical, public, save:: G_extract =.false.
logical, public, save:: G_extract_auto =.true.
logical, public, save:: G_extract_flag =.false.
character(len=:), public, allocatable, save:: G_extract_start
character(len=:), public, allocatable, save:: G_extract_start0
character(len=:), public, allocatable, save:: G_extract_stop
character(len=:), public, allocatable, save:: G_extract_stop0
character(len=:), public, allocatable, save:: G_file
type(file_stack), public :: G_file_dictionary(250)
logical, public :: G_ident =.false.
integer, public :: G_ihelp =stdout
integer, public :: G_inc_count =0
character(len=G_line_length), public :: G_inc_files(50)
logical, public, save:: G_inparcel =.false.
integer, public :: G_io_total_lines =0
integer, public :: G_iocount =0
integer, public :: G_iout
integer, public, save:: G_iout_init
integer, public :: G_iwidth
character(len=:), public, allocatable, save:: G_lang
integer, public, parameter:: G_line_length =4096
integer, public, save:: G_line_number =0
logical, public :: G_llwrite =.true.
integer, public :: G_nestl =0
integer, public, parameter:: G_nestl_max =20
logical, public :: G_noenv =.false.
character(len=G_line_length), public :: G_outline
character(len=10), public :: G_outtype ='asis'
type(parcel_stack), public :: G_parcel_dictionary(500)
integer, public :: G_parcelcount =0
character(len=:), public, allocatable, save:: G_scratch_file
integer, public, save:: G_scratch_lun =-1
character(len=G_line_length), public :: G_source
logical, public, save:: G_system_on =.false.
integer, public, parameter:: G_var_len =63
logical, public, save:: G_verbose =.false.
logical, public :: G_write =.true.
type(dictionary), public, save:: macro
integer, public, parameter:: num =2048

Derived Types

type, public :: file_stack

Components

TypeVisibilityAttributesNameInitial
character(len=G_line_length), public :: filename
integer, public :: line_number =0
integer, public :: unit_number

type, public :: parcel_stack

Components

TypeVisibilityAttributesNameInitial
integer, public :: line_number =0
character(len=G_line_length), public :: name
integer, public :: unit_number

Functions

public function en(errnum, translate) result(english)

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: errnum
character(len=*), intent(in) :: translate

Return Value character(len=:),allocatable

public pure function ends_in(string) result(ending)

Arguments

TypeIntentOptionalAttributesName
character, intent(in) :: string

Return Value character,allocatable

public function getdate(name) result(s)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in), optional :: name

Return Value character(len=:),allocatable

public function true_or_false(line, ipos1, ipos2)

Arguments

TypeIntentOptionalAttributesName
character(len=G_line_length), intent(in) :: line
integer, intent(in) :: ipos1
integer, intent(in) :: ipos2

Return Value logical


Subroutines

public subroutine check_name(line)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: line

public subroutine cond()

Arguments

None

public subroutine crib_help(lun)

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: lun

public subroutine def(verb, opts, noelse, eb)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: verb
character(len=*), intent(in) :: opts
integer, intent(out) :: noelse
logical :: eb

public subroutine defines()

Arguments

None

public subroutine dissect2(verb, init, pars, error_return)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: verb
character(len=*), intent(in) :: init
character(len=*), intent(in) :: pars
integer, intent(out), optional :: error_return

public subroutine document(opts)

G_scratch_file=scratch(‘prep_scratch.’)) THIS HAS TO BE A UNIQUE NAME – IMPROVE THIS

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: opts

public subroutine else(verb, opts, noelse, eb)

Arguments

TypeIntentOptionalAttributesName
character(len=*) :: verb
character(len=*) :: opts
integer :: noelse
logical :: eb

public subroutine endif(noelse, eb)

Arguments

TypeIntentOptionalAttributesName
integer, intent(out) :: noelse
logical, intent(out) :: eb

public subroutine exe()

Arguments

None

public subroutine expand_variables(line)

Arguments

TypeIntentOptionalAttributesName
character(len=*) :: line

public subroutine findit(line)

Arguments

TypeIntentOptionalAttributesName
character(len=G_line_length) :: line

public subroutine flushit()

Arguments

None

public subroutine format_g_man()

Arguments

None

public subroutine get_os_type()

Determine the OS type by guessing

Read more…

Arguments

None

public subroutine ident(opts)

Arguments

TypeIntentOptionalAttributesName
character(len=*) :: opts

public subroutine if(opts, noelse, eb)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: opts
integer, intent(out) :: noelse
logical :: eb

public subroutine import(line)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: line

public subroutine include(line, iunit)

Arguments

TypeIntentOptionalAttributesName
character(len=G_line_length), intent(in) :: line
integer, intent(in) :: iunit

public subroutine includes()

Arguments

None

public subroutine opens()

Arguments

None

public subroutine output_cmd(opts)

Arguments

TypeIntentOptionalAttributesName
character(len=*) :: opts

public subroutine parcel_case(opts)

Arguments

TypeIntentOptionalAttributesName
character(len=*) :: opts

public subroutine post(parcel_name)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: parcel_name

public subroutine prepost(opts)

Arguments

TypeIntentOptionalAttributesName
character(len=*) :: opts

public subroutine print_comment_block()

Arguments

None

public subroutine put(opts)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: opts

public subroutine set(line)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: line

public subroutine setup(help_text, version_text)

!!$! which is preferred; but a blank value or “END” on a $BLOCK directive does as well.

Arguments

TypeIntentOptionalAttributesName
character(len=:), intent(out), allocatable:: help_text(:)
character(len=:), intent(out), allocatable:: version_text(:)

public subroutine show_state(list, msg)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in), optional :: list
character(len=*), intent(in) :: msg

public subroutine stop(opts)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: opts

public subroutine stop_prep(errnum, translate, message, stop_value)

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: errnum
character(len=*), intent(in) :: translate
character(len=*), intent(in) :: message
integer, optional :: stop_value

public subroutine undef(opts)

Arguments

TypeIntentOptionalAttributesName
character(len=*) :: opts

public subroutine unset(opts)

Arguments

TypeIntentOptionalAttributesName
character(len=*) :: opts

public subroutine warn_prep(message)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: message

public subroutine write_arguments()

Arguments

None

public subroutine write_err(msg)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: msg

public subroutine write_get_arguments()

Arguments

None

public subroutine write_out(line)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: line

public subroutine www(line)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: line