[cig-commits] [commit] master: Sanity test (1da8017)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Mon Nov 10 12:10:35 PST 2014


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

On branch  : master
Link       : https://github.com/geodynamics/vq/compare/197914f4e03e55d321cae45161deafb1a5ade706...9ebb976b0ec90f56c8c1abfcd43d67ae38f64e87

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

commit 1da80175d19402a187c1e0b12f4c88f7f5c54aeb
Author: Eric Heien <emheien at ucdavis.edu>
Date:   Fri Oct 31 16:42:03 2014 -0700

    Sanity test


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

1da80175d19402a187c1e0b12f4c88f7f5c54aeb
 src/core/SimDataBlocks.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/core/SimDataBlocks.cpp b/src/core/SimDataBlocks.cpp
index db097b9..608e88a 100644
--- a/src/core/SimDataBlocks.cpp
+++ b/src/core/SimDataBlocks.cpp
@@ -33,6 +33,7 @@ BlockID VCSimDataBlocks::addBlock(const Block &new_block) {
     assertThrow(new_block.getFaultID()>=0, "Block fault ID must be non-negative.");
     assertThrow(new_block.min_depth()>new_block.max_depth(), "Block top must be higher than block bottom.");
     assertThrow(new_block.slip_rate()>=0, "Blocks may not have a negative slip rate (use rake to specify direction instead).");
+    assertThrow(new_block.area()>0, "Blocks must have a positive non-zero area.");
     assertThrow(new_block.getRhogd()>0, "Blocks must have a positive rhogd.");
 
     new_block_id = blocks.size();



More information about the CIG-COMMITS mailing list