convload Module

Reader of KEPLER .cnv files into convdata%data.

Layout and record versions in docs/cnvfiles.md. loadconv is mesaload.f90's fallback for paths matching no other format; mesaload.f90 and monload.f90 also call sort_models.


Uses


Variables

Type Visibility Attributes Name Initial
character(len=*), public, parameter :: convert = 'big_endian'

Byte order of .cnv files.

integer(kind=int32), public, parameter :: cnv_start = 1024

Initial capacity of data, in models.

real(kind=real64), public, parameter :: cnv_fac = 0.5d0*(sqrt(5.d0)+1.d0)

Growth factor of full data, golden ratio.


Functions

public function loadconv_record(iunit) result(cnv)

Decode next record w/ its version's decoder.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: iunit

Unit of open .cnv file, positioned at a record.

Return Value type(convtype)

public function loadconv_10600(iunit) result(cnv)

Decode one record of version 10600 to 10699.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: iunit

Unit of open .cnv file, positioned at record.

Return Value type(convtype)

public function loadconv_10700(iunit) result(cnv)

Decode one record of version 10700 or later.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: iunit

Unit of open .cnv file, positioned at record.

Return Value type(convtype)


Subroutines

public subroutine loadconv(namecnv, ifirst, ilast)

Load models of .cnv file into data.

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: namecnv

Path of the .cnv file.

integer(kind=int32), intent(in) :: ifirst

First model number to load.

integer(kind=int32), intent(in) :: ilast

Last model number to load.

public subroutine sort_models()

Keep last record of each model number in data, in ascending order.

Read more…

Arguments

None