libsim  Versione8.0.0

◆ volgrid6d_delete()

subroutine volgrid6d_class::volgrid6d_delete ( type(volgrid6d), intent(inout)  this)
private

Destructor, it releases every information and memory buffer associated with the object.

It should be called also for objects crated through the import interface.

Definizione alla linea 768 del file volgrid6d_class.F90.

768  IF (.NOT. exist) CALL raise_fatal_error('file '//trim(lfilename)//' does not exist, cannot open')
769  open (unit=lunit,file=lfilename,form="UNFORMATTED")
770 end if
771 
772 read(unit=lunit)ldescription
773 read(unit=lunit)ltarray
774 
775 call l4f_log(l4f_info,"Info: reading volgrid6d from file: "//trim(lfilename))
776 call l4f_log(l4f_info,"Info: description: "//trim(ldescription))
777 !call l4f_log("Info: written on ",ltarray)
778 
779 if (present(description))description=ldescription
780 if (present(tarray))tarray=ltarray
781 
782 
783 call read_unit( this%griddim,lunit)
784 read(unit=lunit) ntime, ntimerange, nlevel, nvar
785 
786 
787 call volgrid6d_alloc (this, &
788  ntime=ntime, ntimerange=ntimerange, nlevel=nlevel, nvar=nvar)
789 
790 call volgrid6d_alloc_vol (this)
791 
792 if (associated(this%time)) call read_unit(this%time, lunit)
793 if (associated(this%level)) read(unit=lunit)this%level
794 if (associated(this%timerange)) read(unit=lunit)this%timerange
795 if (associated(this%var)) read(unit=lunit)this%var
796 
797 
798 !! Volumi di valori
799 
800 if (associated(this%voldati)) read(unit=lunit)this%voldati
801 
802 if (.not. present(unit)) close(unit=lunit)
803 
804 end subroutine volgrid6d_read_from_file
805 
806 

Generated with Doxygen.