twrite vtk files, only show info output if run is verbose - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
 (HTM) git clone git://src.adamsgaard.dk/sphere
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 332edf3ee32a59f0cd944b02daf0509ae9d300a5
 (DIR) parent 105d1be7726f1023ba951d71855a20cdc888339c
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Mon, 10 Nov 2014 10:38:02 +0100
       
       write vtk files, only show info output if run is verbose
       
       Diffstat:
         M src/sphere.cpp                      |       3 ++-
         M tests/cfd_tests_darcy.py            |       1 +
       
       2 files changed, 3 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/src/sphere.cpp b/src/sphere.cpp
       t@@ -145,6 +145,7 @@ void checkIfNaN(Float4 vec, std::string description, unsigned int idx)
        void DEM::checkValues(void)
        {
            using std::cerr;
       +    using std::cout;
            using std::endl;
        
            unsigned int i;
       t@@ -165,7 +166,7 @@ void DEM::checkValues(void)
            }
        
            // Check that we have a positive number of particles
       -    if (np < 1) {
       +    if (np < 1 && verbose == 1) {
                cout << "Info: No particles are being simulated (np = " << np
                    << ")" << endl;
            }
 (DIR) diff --git a/tests/cfd_tests_darcy.py b/tests/cfd_tests_darcy.py
       t@@ -167,6 +167,7 @@ orig.p_f[4,2,5] = 2.0
        #orig.run(verbose=False)
        orig.run(device=2, verbose=True)
        py = sphere.sim(sid = orig.sid, fluid = True)
       +py.writeVTKall()
        
        
        #ones = numpy.ones((orig.num))