Introduction
Introduction Statistics Contact Development Disclaimer Help
twrite vtk files, only show info output if run is verbose - sphere - GPU-based …
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit 332edf3ee32a59f0cd944b02daf0509ae9d300a5
parent 105d1be7726f1023ba951d71855a20cdc888339c
Author: Anders Damsgaard <[email protected]>
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(-)
---
diff --git a/src/sphere.cpp b/src/sphere.cpp
t@@ -145,6 +145,7 @@ void checkIfNaN(Float4 vec, std::string description, unsig…
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;
}
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))
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.