[cig-commits] [commit] master: Fix compiler error (b33c0df)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Thu Jan 29 18:42:56 PST 2015


Repository : https://github.com/geodynamics/vq

On branch  : master
Link       : https://github.com/geodynamics/vq/compare/941b3d7e55983967dea392d12aeac9ce3998ca30...b33c0dfab4ddfb11d6068a1661400b54ac233cb9

>---------------------------------------------------------------

commit b33c0dfab4ddfb11d6068a1661400b54ac233cb9
Author: Eric Heien <emheien at ucdavis.edu>
Date:   Thu Jan 29 18:42:46 2015 -0800

    Fix compiler error


>---------------------------------------------------------------

b33c0dfab4ddfb11d6068a1661400b54ac233cb9
 src/core/Simulation.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/Simulation.cpp b/src/core/Simulation.cpp
index b4d7f5f..257d6aa 100644
--- a/src/core/Simulation.cpp
+++ b/src/core/Simulation.cpp
@@ -646,9 +646,9 @@ void Simulation::distributeUpdateField(void) {
  Distributes a list of blocks among all processors. Used for determining failed blocks in a sweep.
  */
 void Simulation::distributeBlocks(const quakelib::ElementIDSet &local_id_list, BlockIDProcMapping &global_id_list) {
+    quakelib::ElementIDSet::const_iterator  it;
 #ifdef MPI_C_FOUND
     int                                     i, n, p;
-    quakelib::ElementIDSet::const_iterator  it;
     int                         *proc_block_count = new int[world_size];
     int                         *proc_block_disps = new int[world_size];
     BlockID                     *local_block_ids = new BlockID[local_id_list.size()];



More information about the CIG-COMMITS mailing list