twrite the number of contacts to VTK files - Granular.jl - Julia package for gr… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 75f7c215c492d93d62305404c6b005e11c76cb4a | |
parent 7bafd0d7e6f0476e8effe65a232673f1b74bd019 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 10 May 2017 13:40:19 -0400 | |
write the number of contacts to VTK files | |
Diffstat: | |
M src/io.jl | 3 +++ | |
M test/vtk.jl | 6 ++++-- | |
2 files changed, 7 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/src/io.jl b/src/io.jl | |
t@@ -96,6 +96,9 @@ function writeIceFloeVTK(simulation::Simulation, | |
WriteVTK.vtk_point_data(vtkfile, ifarr.pressure, | |
"Contact pressure [Pa]") | |
+ WriteVTK.vtk_point_data(vtkfile, ifarr.n_contacts, | |
+ "Number of contacts [-]") | |
+ | |
outfiles = WriteVTK.vtk_save(vtkfile) | |
if verbose | |
info("Output file: " * outfiles[1]) | |
diff --git a/test/vtk.jl b/test/vtk.jl | |
t@@ -24,9 +24,11 @@ else | |
end | |
@test readstring(`$(cmd) test.icefloes.1.vtu$(cmd_post)`) == | |
-"a01d322026a56b1332c2174e4b513015c63ad44e2a28140bd2c2cccf7df38a13 test.iceflo… | |
+"88daceb1b99c519154b1acdcf8f340967794c552c74ea70c4af8954d8af5296a " * | |
+"test.icefloes.1.vtu\n" | |
@test readstring(`$(cmd) test.ocean.1.vts$(cmd_post)`) == | |
-"f0117e414c4e71a0c55980f63865eb03b6c597fa2546983258b8a57eb4ff2a25 test.ocean.… | |
+"f0117e414c4e71a0c55980f63865eb03b6c597fa2546983258b8a57eb4ff2a25 " * | |
+"test.ocean.1.vts\n" | |
SeaIce.removeSimulationFiles(sim) |