read_chrg Interface

public interface read_chrg

Read molecular charge from a .CHRG file or formatted unit


Module Procedures

private subroutine read_chrg_from_file(charge, file, error)

Read molecular charge from a file

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(out) :: charge

Molecular charge

character(len=*), intent(in) :: file

Path to .CHRG file

type(error_type), intent(out), allocatable :: error

Error handling

private subroutine read_chrg_from_unit(charge, unit, error)

Read molecular charge from an open formatted unit

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(out) :: charge

Molecular charge

integer, intent(in) :: unit

Formatted input unit

type(error_type), intent(out), allocatable :: error

Error handling