@@ -365,12 +365,12 @@ def timestep(self):
365365 with timed_stage ("Apply forcing terms" ):
366366 logger .info (f'TR-BDF2 Quasi Newton: TR Implicit forcing { (outer , inner )} ' )
367367 self .tr_forcing .apply (xp , xm , xrhs , "implicit" )
368+ xrhs += xrhs_phys
368369 if inner > 0 :
369370 # Zero implicit forcing to accelerate solver convergence
370- self .tr_forcing .zero_forcing_terms (self .equation , xm , xrhs , self .equation .field_names )
371+ self .tr_forcing .zero_non_wind_terms (self .equation , xm , xrhs , self .equation .field_names )
371372
372373 xrhs -= xm (self .field_name )
373- xrhs += xrhs_phys
374374
375375 # Linear solve -------------------------------------------------
376376
@@ -429,12 +429,12 @@ def timestep(self):
429429 with timed_stage ("Apply forcing terms" ):
430430 logger .info (f'TR-BDF2 Quasi Newton: BDF Implicit forcing { (outer , inner )} ' )
431431 self .bdf_forcing .apply (xp , xnp1 , xrhs , "implicit" )
432+ xrhs += xrhs_phys
432433 if inner > 0 :
433434 # Zero implicit forcing to accelerate solver convergence
434- self .bdf_forcing .zero_forcing_terms (self .equation , xnp1 , xrhs , self .equation .field_names )
435+ self .bdf_forcing .zero_non_wind_terms (self .equation , xnp1 , xrhs , self .equation .field_names )
435436
436437 xrhs -= xnp1 (self .field_name )
437- xrhs += xrhs_phys
438438
439439 # Linear solve -------------------------------------------------
440440 with timed_stage ("Implicit solve" ):
0 commit comments