finalize the type sgrid
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_sGrid), | intent(inout) | :: | sf |
self |
SUBROUTINE sGrid_free( sf ) ! MODULES IMPLICIT NONE !----------------------------------------------------------------------------------------------------------------------------------- ! INPUT VARIABLES !----------------------------------------------------------------------------------------------------------------------------------- ! OUTPUT VARIABLES CLASS(t_sgrid), INTENT(INOUT) :: sf !! self !----------------------------------------------------------------------------------------------------------------------------------- ! LOCAL VARIABLES !=================================================================================================================================== IF(.NOT.sf%initialized) RETURN sf%nElems = -1 sf%grid_Type= -1 SDEALLOCATE(sf%offset_elem) SDEALLOCATE(sf%sp) SDEALLOCATE(sf%ds) sf%initialized=.FALSE. END SUBROUTINE sGrid_free