Skip to content

Commit

Permalink
Adding deallocation for some arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrypek committed Oct 26, 2017
1 parent 9d6265e commit 1b8d76b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions build/module.F90
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,10 @@ subroutine p3dfft_clean()
call dfftw_destroy_plan(plan2_bc_same(tid))
call dfftw_destroy_plan(plan_ctrans_same(tid))
call dfftw_destroy_plan(plan_strans_same(tid))
#ifdef STRIDE1
call dfftw_destroy_plan(plan_strans_dif(tid))
call dfftw_destroy_plan(plan_ctrans_dif(tid))
call dfftw_destroy_plan(plan2_fc_dif(tid))
call dfftw_destroy_plan(plan2_bc_dif(tid))
#endif
#else
call sfftw_destroy_plan(plan1_frc(tid))
call sfftw_destroy_plan(plan1_bcr(tid))
Expand All @@ -287,19 +285,15 @@ subroutine p3dfft_clean()
call sfftw_destroy_plan(plan2_bc_same(tid))
call sfftw_destroy_plan(plan_ctrans_same(tid))
call sfftw_destroy_plan(plan_strans_same(tid))
#ifdef STRIDE1
call sfftw_destroy_plan(plan2_fc_dif(tid))
call sfftw_destroy_plan(plan2_bc_dif(tid))
call sfftw_destroy_plan(plan_ctrans_dif(tid))
call sfftw_destroy_plan(plan_strans_dif(tid))
#endif
#endif
enddo

deallocate(plan1_frc,plan1_bcr,plan1_fc,plan2_fc_same,plan1_bc,plan2_bc_same,plan_ctrans_same,plan_strans_same)
#ifdef STRIDE1
deallocate(plan_ctrans_dif,plan_strans_dif,plan2_fc_dif,plan2_bc_dif)
#endif

#elif defined ESSL
deallocate(caux1)
Expand Down

0 comments on commit 1b8d76b

Please sign in to comment.