Load every model of an input and build its axes.
Reader picked from path by load_convection; .kipp header mass and radius units replace
those of st; view fitted by kipp_autoscale. Fewer than 2 models stops program w/ error.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | filename |
Path of |
subroutine kipp_load(filename) !! Load every model of an input and build its axes. !! !! Reader picked from path by `load_convection`; `.kipp` header mass and radius units replace !! those of `st`; view fitted by `kipp_autoscale`. Fewer than 2 models stops program w/ error. ! Arguments character(len=*), intent(in) :: filename !! Path of `.cnv`, `.kipp` or seq file, or MESA profiles dir. call load_convection(filename, 1_int32, huge(1_int32)) nmodels = int(size(data), int32) if (nmodels < 2) error stop '[kipp] need at least 2 models' if (len_trim(kipp_axis_units(DIM_MASS)) > 0) st%munit = kipp_axis_units(DIM_MASS) if (len_trim(kipp_axis_units(DIM_LENGTH)) > 0) st%runit = kipp_axis_units(DIM_LENGTH) call cache_invalidate() call build_axes() call kipp_autoscale() end subroutine kipp_load