[cig-commits] commit: Make CalcNewDt not return anything, since the return value is not used.

Mercurial hg at geodynamics.org
Sun Apr 29 05:41:28 PDT 2012


changeset:   831:7283c8c453ab
user:        Walter Landry <wlandry at caltech.edu>
date:        Sun Apr 29 05:38:43 2012 -0700
files:       SLE/SystemSetup/src/FiniteElementContext.cxx SLE/SystemSetup/src/FiniteElementContext.h
description:
Make CalcNewDt not return anything, since the return value is not used.


diff -r 41f32c8e704f -r 7283c8c453ab SLE/SystemSetup/src/FiniteElementContext.cxx
--- a/SLE/SystemSetup/src/FiniteElementContext.cxx	Fri Apr 20 11:41:40 2012 -0700
+++ b/SLE/SystemSetup/src/FiniteElementContext.cxx	Sun Apr 29 05:38:43 2012 -0700
@@ -361,7 +361,7 @@ double _FiniteElementContext_GetDt( void
 	return self->dt;
 }
 
-double FiniteElementContext_CalcNewDt( void* context ) {
+void FiniteElementContext_CalcNewDt( void* context ) {
   FiniteElementContext* self = (FiniteElementContext*)context;
 
   self->prevTimestepDt = self->dt;
@@ -405,7 +405,6 @@ double FiniteElementContext_CalcNewDt( v
           self->dt = self->maxTimeStepSize;
       }
     }
-  return self->dt;
 }
 
 
diff -r 41f32c8e704f -r 7283c8c453ab SLE/SystemSetup/src/FiniteElementContext.h
--- a/SLE/SystemSetup/src/FiniteElementContext.h	Fri Apr 20 11:41:40 2012 -0700
+++ b/SLE/SystemSetup/src/FiniteElementContext.h	Sun Apr 29 05:38:43 2012 -0700
@@ -146,7 +146,7 @@
 	/** Function to calculate the new dt based on the solution just obtained, which
 	  * will be used next timestep. Calls as entry point of a corresponding name,
 	  * which each SLE can add a hook to based on its own criterion */
-	double FiniteElementContext_CalcNewDt( void* context ) ;
+	void FiniteElementContext_CalcNewDt( void* context ) ;
 
 	/* Public functions ------------------------------------------------------------------------------------------------------*/
 	



More information about the CIG-COMMITS mailing list