constructor Submodule

Implementation of the constructor and destructor of TYPE bnslorene, and of the bnslorene-member PROCEDURES that call the C-bound PROCEDURES constructig and destructing the \(\texttt{LORENE}\) \(\texttt{Bin_NS}\) object

FT 23.10.2020



Uses

  • module~~constructor~2~~UsesGraph module~constructor~2 constructor module~bns_lorene bns_lorene module~constructor~2->module~bns_lorene iso_c_binding iso_c_binding module~bns_lorene->iso_c_binding module~bns_base bns_base module~bns_lorene->module~bns_base module~id_base id_base module~bns_lorene->module~id_base module~utility utility module~bns_lorene->module~utility timing timing module~bns_lorene->timing module~bns_base->module~id_base module~bns_base->module~utility module~id_base->module~utility module~id_base->timing constants constants module~utility->constants matrix matrix module~utility->matrix

Contents


Module Procedures

module procedure construct_binary module subroutine construct_binary(this, id_file, eos_filenames)

Construct the \(\texttt{LORENE}\) \(\texttt{Bin_NS}\) object

Read more…

Arguments

Type IntentOptional Attributes Name
class(bnslorene), intent(inout) :: this

bnslorene object which this PROCEDURE is a member of

character(kind=C_CHAR, len=*), intent(in), optional :: id_file

\(\texttt{LORENE}\) binary file containing the spectral \(\mathrm{BNS}\) \(\mathrm{ID}\)

character(kind=C_CHAR, len=*), intent(in), optional, DIMENSION(2) :: eos_filenames

Array of strings containing the names of the files containing the \(\mathrm{EOS}\) to be used for each matter object. If not PRESENT, information from the file filename is used

module procedure construct_bnslorene module subroutine construct_bnslorene(derived_type, filename, eos_filenames)

Constructs an object of TYPE bnslorene

Read more…

Arguments

Type IntentOptional Attributes Name
class(bnslorene), intent(out) :: derived_type

Constructed bnslorene object

character(len=*), intent(in), optional :: filename

\(\texttt{LORENE}\) binary file containing the spectral \(\mathrm{BNS}\) \(\mathrm{ID}\)

character(len=*), intent(in), optional, DIMENSION(:) :: eos_filenames

Array of strings containing the names of the files containing the \(\mathrm{EOS}\) to be used for each matter object. If not PRESENT, information from the file filename is used

module procedure destruct_binary module subroutine destruct_binary(this)

Destructs the \(\texttt{LORENE}\) \(\texttt{Bin_NS}\) object and frees the pointer bns_ptr pointing to it

Read more…

Arguments

Type IntentOptional Attributes Name
class(bnslorene), intent(inout) :: this

bnslorene object which this PROCEDURE is a member of

module procedure destruct_bnslorene module subroutine destruct_bnslorene(this)

Destructs an object of TYPE bnslorene

Read more…

Arguments

Type IntentOptional Attributes Name
type(bnslorene), intent(inout) :: this

bnslorene object to be destructed

module procedure nothing module subroutine nothing(this, flag, switch)

Procedure that does nothing. It is used to instantiate a deferred idbase procedure which is not needed in TYPE bnslorene. It also serves as a placeholder in case the idbase procedure will be needed in the future.

Read more…

Arguments

Type IntentOptional Attributes Name
class(bnslorene), intent(inout) :: this
integer, intent(in) :: flag

Identifies what kind of initialization has to be done

logical, intent(in), optional :: switch

If .TRUE., switch to a different initialization