|
libsim Versione 8.0.0
|
◆ volgrid6d_delete()
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 757 del file volgrid6d_class.F90. 758 lfilename=filename
759 end if
760end if
761
762if (present(filename_auto))filename_auto=lfilename
763
764
765inquire(unit=lunit,opened=opened)
766if (.not. opened) then
767 inquire(file=lfilename,exist=exist)
768 IF (.NOT. exist) CALL raise_fatal_error('file '//trim(lfilename)//' does not exist, cannot open')
769 open (unit=lunit,file=lfilename,form="UNFORMATTED")
770end if
771
772read(unit=lunit)ldescription
773read(unit=lunit)ltarray
774
775call l4f_log(l4f_info,"Info: reading volgrid6d from file: "//trim(lfilename))
776call l4f_log(l4f_info,"Info: description: "//trim(ldescription))
777!call l4f_log("Info: written on ",ltarray)
778
779if (present(description))description=ldescription
780if (present(tarray))tarray=ltarray
781
782
783call read_unit( this%griddim,lunit)
784read(unit=lunit) ntime, ntimerange, nlevel, nvar
785
786
787call volgrid6d_alloc (this, &
788 ntime=ntime, ntimerange=ntimerange, nlevel=nlevel, nvar=nvar)
789
790call volgrid6d_alloc_vol (this)
791
792if (associated(this%time)) call read_unit(this%time, lunit)
793if (associated(this%level)) read(unit=lunit)this%level
794if (associated(this%timerange)) read(unit=lunit)this%timerange
795if (associated(this%var)) read(unit=lunit)this%var
796
797
798!! Volumi di valori
|