psmile_free_grid_handle.F90
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 subroutine psmile_free_grid_handle (grid_id, ierror)
00012
00013
00014
00015 use PRISM_constants
00016
00017 use PSMILe, dummy_interface => PSMILe_Free_grid_handle
00018
00019 implicit none
00020
00021
00022
00023 integer,Intent(In) :: grid_id
00024
00025
00026
00027
00028
00029
00030 integer, Intent (Out) :: ierror
00031
00032
00033
00034
00035
00036
00037
00038 integer, parameter :: nerrp = 2
00039 integer :: ierrp (nerrp)
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057 Character(len=len_cvs_string), save :: mycvs =
00058 '$Id: psmile_free_grid_handle.F90 2325 2010-04-21 15:00:07Z valcke $'
00059
00060
00061
00062
00063
00064 ierror = 0
00065
00066 if (grid_id > Number_of_Grids_allocated .or. &
00067 grid_id < 1) then
00068
00069 ierrp (1) = grid_id
00070 ierrp (2) = Number_of_Grids_allocated
00071
00072 ierror = PRISM_Error_Internal
00073 call psmile_error (ierror, "invalid grid handle", &
00074 ierrp, nerrp, __FILE__, __LINE__)
00075 return
00076 endif
00077
00078
00079
00080 Grids(grid_id)%status = PSMILe_status_free
00081
00082 end subroutine PSMILe_Free_grid_handle