VMEC 8.52
3D Equilibrium solver with nested flux surfaces.
Loading...
Searching...
No Matches
free_mem_nunv.f90
Go to the documentation of this file.
1
3
6SUBROUTINE free_mem_nunv
7 USE vmec_main
8 USE vacmod, only: free_mem_nestor
9 IMPLICIT NONE
10
11 INTEGER :: istat1 = 0, istat2 = 0
12
13 IF (ALLOCATED(bsubu0)) &
14 DEALLOCATE (bsubu0, rbsq, dbsq, stat=istat1)
15 IF (ALLOCATED(rmn_bdy)) &
16 DEALLOCATE (rmn_bdy, zmn_bdy, stat=istat2)
17
19 if (allocated(bsqsav)) then
20 deallocate(bsqsav)
21 end if
22
23 IF (istat1.ne.0 .or. istat2.ne.0) THEN
24 print *,' deallocation problem in free_mem_nunv'
25 print *,' istat1 = ',istat1
26 print *,' istat2 = ',istat2
27 ENDIF
28
29END SUBROUTINE free_mem_nunv
subroutine free_mem_nunv
Free arrays depending on the number of Fourier coefficients nunv.
subroutine free_mem_nestor
Definition vacmod.f90:287
real(rprec), dimension(:), allocatable dbsq
real(rprec), dimension(:,:,:), allocatable, target zmn_bdy
real(rprec), dimension(:), allocatable rbsq
real(rprec), dimension(:,:), allocatable bsqsav
Definition vmec_main.f90:73
real(rprec), dimension(:,:,:), allocatable, target rmn_bdy
real(rprec), dimension(:), allocatable bsubu0