[cig-commits] r8089 - mc/3D/CitcomS/trunk/CitcomS/Coupler

tan2 at geodynamics.org tan2 at geodynamics.org
Fri Oct 5 12:58:31 PDT 2007


Author: tan2
Date: 2007-10-05 12:58:31 -0700 (Fri, 05 Oct 2007)
New Revision: 8089

Modified:
   mc/3D/CitcomS/trunk/CitcomS/Coupler/MultiC_Coupler.py
   mc/3D/CitcomS/trunk/CitcomS/Coupler/MultiE_Coupler.py
Log:
Add licence text to the multi-couplers

Modified: mc/3D/CitcomS/trunk/CitcomS/Coupler/MultiC_Coupler.py
===================================================================
--- mc/3D/CitcomS/trunk/CitcomS/Coupler/MultiC_Coupler.py	2007-10-05 19:57:48 UTC (rev 8088)
+++ mc/3D/CitcomS/trunk/CitcomS/Coupler/MultiC_Coupler.py	2007-10-05 19:58:31 UTC (rev 8089)
@@ -1,4 +1,30 @@
 #!/usr/bin/env python
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+#<LicenseText>
+#
+# CitcomS.py by Eh Tan, Eun-seo Choi, and Pururav Thoutireddy.
+# Copyright (C) 2002-2005, California Institute of Technology.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+#</LicenseText>
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
 
 #
 #containing coupler with more than one coupled embedded coupler
@@ -129,10 +155,8 @@
         return
 
 
-    # initTemperature
+    # exchangeTemperature
 
-    # restartTemperature
-
     # modifyT
 
     def postVSolverRun(self):
@@ -198,7 +222,7 @@
         sent = NEW_STEP_SIGNAL
 
         KEEP_WAITING_FLAG = True
-       
+
         while KEEP_WAITING_FLAG:
 
             #receive signals
@@ -212,7 +236,7 @@
             # determining what to send
             if done or (recv == END_SIMULATION_SIGNAL) or \
                (recv2 == END_SIMULATION_SIGNAL):
-                # end the simulation    
+                # end the simulation
                 sent = END_SIMULATION_SIGNAL
                 done = True
                 KEEP_WAITING_FLAG = False
@@ -244,7 +268,7 @@
             if sent == BIG_NEW_STEP_SIGNAL:
                 self.coupled_steps = self.exchangeSignal(steps)
                 self.coupled_steps2 = self.exchangeSignal2(steps)
- 
+
         return done
 
 

Modified: mc/3D/CitcomS/trunk/CitcomS/Coupler/MultiE_Coupler.py
===================================================================
--- mc/3D/CitcomS/trunk/CitcomS/Coupler/MultiE_Coupler.py	2007-10-05 19:57:48 UTC (rev 8088)
+++ mc/3D/CitcomS/trunk/CitcomS/Coupler/MultiE_Coupler.py	2007-10-05 19:58:31 UTC (rev 8089)
@@ -1,7 +1,33 @@
 #!/usr/bin/env python
- 
- 
 #
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+#<LicenseText>
+#
+# CitcomS.py by Eh Tan, Eun-seo Choi, and Pururav Thoutireddy.
+# Copyright (C) 2002-2005, California Institute of Technology.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+#</LicenseText>
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+
+
+#
 #embedded coupler used in multi coupled application
 #
 #
@@ -17,7 +43,7 @@
         NEW_STEP_SIGNAL = 1
         END_SIMULATION_SIGNAL = 2
         BIG_NEW_STEP_SIGNAL = 3
-        
+
         if done:
             sent = END_SIMULATION_SIGNAL
         elif self.synchronized:



More information about the cig-commits mailing list