libsim Versione 8.0.0

◆ grid_transform_delete()

subroutine grid_transform_delete ( type(grid_transform), intent(inout) this)
private

Destructor of grid_tranform object.

It releases any memory and data associated to grid_transform object this, the logger category will be deleted too.

Parametri
[in,out]thisgrid_transform object

Definizione alla linea 3039 del file grid_transform_class.F90.

3040 lzlist(:) = .true.
3041ENDIF
3042
3043! check size of field_in, field_out
3044IF (this%trans%trans_type == 'vertint') THEN ! vertical interpolation
3045
3046 IF (innz /= this%innz) THEN
3047 CALL l4f_category_log(this%category,l4f_error,"vertical interpolation")
3048 CALL l4f_category_log(this%category,l4f_error,"inconsistent input shape: "//&
3049 t2c(this%innz)//" /= "//t2c(innz))
3050 CALL raise_error()
3051 RETURN
3052 ENDIF
3053
3054 IF (outnz /= this%outnz) THEN
3055 CALL l4f_category_log(this%category,l4f_error,"vertical interpolation")
3056 CALL l4f_category_log(this%category,l4f_error,"inconsistent output shape: "//&
3057 t2c(this%outnz)//" /= "//t2c(outnz))
3058 CALL raise_error()
3059 RETURN
3060 ENDIF
3061
3062 IF (innx /= outnx .OR. inny /= outny) THEN
3063 CALL l4f_category_log(this%category,l4f_error,"vertical interpolation")
3064 CALL l4f_category_log(this%category,l4f_error,"inconsistent hor. sizes: "//&
3065 t2c(innx)//","//t2c(inny)//" /= "//&
3066 t2c(outnx)//","//t2c(outny))
3067 CALL raise_error()
3068 RETURN
3069 ENDIF
3070
3071ELSE ! horizontal interpolation
3072
3073 IF (innx /= this%innx .OR. inny /= this%inny) THEN
3074 CALL l4f_category_log(this%category,l4f_error,"horizontal interpolation")
3075 CALL l4f_category_log(this%category,l4f_error,"inconsistent input shape: "//&
3076 t2c(this%innx)//","//t2c(this%inny)//" /= "//&
3077 t2c(innx)//","//t2c(inny))
3078 CALL raise_error()

Generated with Doxygen.