gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
dc_units::deallocate Interface Reference

Public Member Functions

subroutine dcunitsdeallocate (u)

Detailed Description

Definition at line 91 of file dc_units.f90.

Member Function/Subroutine Documentation

◆ dcunitsdeallocate()

subroutine dc_units::deallocate::dcunitsdeallocate ( type(units), intent(inout) u)

Deallocate UNITS variable

Deallocates allocated arrays and resets to initial state.

Parameters
[in,out]uUNITS variable to deallocate

Definition at line 361 of file dc_units.f90.

362 type(UNITS), intent(inout):: u
363 if (associated(u%name)) deallocate(u%name)
364 if (associated(u%power)) deallocate(u%power)
365 u%factor = 1.0_dp
366 u%offset = ""
367 u%nelems = 0

References cancel_exp(), dcunits_com::dcunitsgettoken(), dcunits_com::dcunitssetline(), dcunits_com::s_closepar, dcunits_com::s_divide, dcunits_com::s_eof, dcunits_com::s_exponent, dcunits_com::s_integer, dcunits_com::s_multiply, dcunits_com::s_openpar, dcunits_com::s_real, dcunits_com::s_shift, and dcunits_com::s_text.

Here is the call graph for this function:

The documentation for this interface was generated from the following file: