Skip to content

Commit 398b2f0

Browse files
committed
🔇 Remove unused logging and 🎯 Map clear
1 parent 2741302 commit 398b2f0

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

include/solvers/mpm_base.tcc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -413,28 +413,21 @@ bool mpm::MPMBase<Tdim>::checkpoint_resume() {
413413
io_->output_file(attribute, extension, uuid_, step_, this->nsteps_)
414414
.string();
415415

416-
console_->info("{} {} {}", mpi_rank, __FILE__, __LINE__);
417416
// Load particle information from file
418417
mesh_->read_particles_hdf5(phase, particles_file);
419-
console_->info("{} {} {}", mpi_rank, __FILE__, __LINE__);
420418

421419
// Clear all particle ids
422420
mesh_->iterate_over_cells(
423421
std::bind(&mpm::Cell<Tdim>::clear_particle_ids, std::placeholders::_1));
424422

425-
console_->info("{} {} {}", mpi_rank, __FILE__, __LINE__);
426423
// Locate particles
427424
auto unlocatable_particles = mesh_->locate_particles_mesh();
428-
console_->info("{} {} {}", mpi_rank, __FILE__, __LINE__);
429425

430426
if (!unlocatable_particles.empty())
431427
throw std::runtime_error("Particle outside the mesh domain");
432-
console_->info("{} {} {}", mpi_rank, __FILE__, __LINE__);
433428

434429
// Increament step
435430
++this->step_;
436-
437-
console_->info("{} {} {}", mpi_rank, __FILE__, __LINE__);
438431
console_->info("Checkpoint resume at step {} of {}", this->step_,
439432
this->nsteps_);
440433

tests/node_map_test.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ TEST_CASE("Node map is checked for 2D case", "[nodemap][2D]") {
5656
REQUIRE(nodemap->remove(node3->id()) == false);
5757
// Check size of node hanlder
5858
REQUIRE(nodemap->size() == 2);
59+
// Clear node map
60+
REQUIRE_NOTHROW(nodemap->clear());
61+
// Check size of node hanlder
62+
REQUIRE(nodemap->size() == 0);
5963
}
6064

6165
SECTION("Check operator []") {
@@ -177,6 +181,10 @@ TEST_CASE("Node map is checked for 3D case", "[nodemap][3D]") {
177181
REQUIRE(nodemap->remove(node3->id()) == false);
178182
// Check size of node hanlder
179183
REQUIRE(nodemap->size() == 2);
184+
// Clear node map
185+
REQUIRE_NOTHROW(nodemap->clear());
186+
// Check size of node hanlder
187+
REQUIRE(nodemap->size() == 0);
180188
}
181189

182190
SECTION("Check operator []") {

0 commit comments

Comments
 (0)