|
|
◆ arrayof_gridinfo_delete()
| subroutine, private gridinfo_class::arrayof_gridinfo_delete |
( |
type(arrayof_gridinfo) |
this, |
|
|
logical, intent(in), optional |
nodestroy, |
|
|
logical, intent(in), optional |
nodealloc |
|
) |
| |
|
private |
Destructor for finalizing an array object.
If defined, calls the destructor for every element of the array object; finally it deallocates all the space occupied.
- Parametri
-
| this | array object to be destroyed |
| this | if provided and .TRUE. , the destructor possibily defined for the TYPE(gridinfo_def) is not called for every deleted object, may be useful if the objects to be deleted have been copied to another instance of arrayof_gridinfo and continue their life there |
| [in] | nodealloc | if provided and .TRUE. , the space reserved for the array is not deallocated, thus the values are retained, while the array pointer is nullified, this means that the caller must have previously assigned the pointer contents thisarray to another pointer to prevent memory leaks |
Definizione alla linea 589 del file gridinfo_class.F90.
589 SUBROUTINE gridinfo_import_gribapi(this, gaid) 590 TYPE(gridinfo_def), INTENT(inout) :: this 591 INTEGER, INTENT(in) :: gaid 593 call time_import_gribapi(this%time, gaid) 594 call timerange_import_gribapi(this%timerange,gaid) 595 call level_import_gribapi(this%level, gaid) 596 call var_import_gribapi(this%var, gaid) 598 call normalize_gridinfo(this) 600 END SUBROUTINE gridinfo_import_gribapi 604 SUBROUTINE gridinfo_export_gribapi(this, gaid) 605 TYPE(gridinfo_def), INTENT(inout) :: this 606 INTEGER, INTENT(in) :: gaid 608 TYPE(conv_func) :: c_func 609 REAL, ALLOCATABLE :: tmparr(:,:) 612 CALL volgrid6d_var_normalize(this%var, c_func, grid_id_new(grib_api_id=gaid)) 613 IF (this%var == volgrid6d_var_miss) THEN 614 CALL l4f_log(l4f_error, & 615 'A suitable variable has not been found in table when converting template') 618 IF (c_func /= conv_func_miss) THEN 619 tmparr = decode_gridinfo(this) 620 CALL compute(c_func, tmparr) 621 CALL encode_gridinfo(this, tmparr) 624 CALL unnormalize_gridinfo(this) 626 CALL time_export_gribapi(this%time, gaid, this%timerange) 627 CALL timerange_export_gribapi(this%timerange, gaid, this%time) 628 CALL level_export_gribapi(this%level, gaid) 629 CALL var_export_gribapi(this%var, gaid) 631 END SUBROUTINE gridinfo_export_gribapi 634 SUBROUTINE time_import_gribapi(this,gaid) 635 TYPE(datetime), INTENT(out) :: this 636 INTEGER, INTENT(in) :: gaid 638 INTEGER :: EditionNumber, ttimeincr, tprocdata, centre, p2g, p2, unit, status 639 CHARACTER(len=9) :: date 640 CHARACTER(len=10) :: time
|