[cig-commits] commit: Make advection happen before a solve, except on the first step

Mercurial hg at geodynamics.org
Tue Oct 4 01:58:53 PDT 2011


changeset:   878:b6bbdc184f58
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Tue Oct 04 01:57:16 2011 -0700
files:       plugins/MovingMesh/MovingMesh.cxx
description:
Make advection happen before a solve, except on the first step


diff -r 365bc6244be8 -r b6bbdc184f58 plugins/MovingMesh/MovingMesh.cxx
--- a/plugins/MovingMesh/MovingMesh.cxx	Mon Oct 03 20:41:47 2011 -0700
+++ b/plugins/MovingMesh/MovingMesh.cxx	Tue Oct 04 01:57:16 2011 -0700
@@ -167,7 +167,7 @@ void Underworld_MovingMesh_Remesh( TimeI
 	dt = AbstractContext_Dt( self->context );
 	/* TODO: the if statement is here since we seem to be using last timestep's dt to update. Is this correct?
 	 PatrickSunter - 5 June 2006 */
-	if ( self->context->timeStep > 1 ) {
+	if ( self->context->timeStep > 0 ) {
 		Journal_Firewall( 
 			dt > 0.0,
 			Journal_Register( Error_Type, (Name)Underworld_MovingMesh_Type  ), 



More information about the CIG-COMMITS mailing list