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
Construct the \(\texttt{LORENE}\) \(\texttt{Bin_NS}\) object
Type | Intent | Optional | 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 |
Constructs an object of TYPE bnslorene
Type | Intent | Optional | 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 |
Destructs the \(\texttt{LORENE}\) \(\texttt{Bin_NS}\) object and frees the pointer bns_ptr pointing to it
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(bnslorene), | intent(inout) | :: | this |
bnslorene object which this PROCEDURE is a member of |
Destructs an object of TYPE bnslorene
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(bnslorene), | intent(inout) | :: | this |
bnslorene object to be destructed |
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.
Type | Intent | Optional | 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 |