Skip to content

Commit

Permalink
a bug fix in AB3 for tracer (qrond allocation)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri Sidorenko committed Aug 7, 2023
1 parent 2b46e0d commit 0183562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oce_setup_step.F90
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ SUBROUTINE tracer_init(tracers, partit, mesh)
do n=1, tracers%num_tracers
allocate(tracers%data(n)%values ( nl-1, node_size))
allocate(tracers%data(n)%valuesAB ( nl-1, node_size))
tracers%data(n)%AB_order = AB_order
allocate(tracers%data(n)%valuesold(tracers%data(n)%AB_order-1, nl-1, node_size))
tracers%data(n)%ID = nml_tracer_list(n)%id
tracers%data(n)%tra_adv_hor = TRIM(nml_tracer_list(n)%adv_hor)
Expand All @@ -353,7 +354,6 @@ SUBROUTINE tracer_init(tracers, partit, mesh)
tracers%data(n)%gamma0_tra = gamma0_tra
tracers%data(n)%gamma1_tra = gamma1_tra
tracers%data(n)%gamma2_tra = gamma2_tra
tracers%data(n)%AB_order = AB_order
tracers%data(n)%values = 0.
tracers%data(n)%valuesAB = 0.
tracers%data(n)%valuesold = 0.
Expand Down

0 comments on commit 0183562

Please sign in to comment.