Skip to content

Commit

Permalink
Remove POLYFEM_WITH_REMESHING define (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
zfergus committed May 30, 2024
1 parent 62c05a7 commit 6c7f5e4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/polyfem/state/StateSolveNonlinear.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ namespace polyfem
EnergyCSVWriter energy_csv(resolve_output_path("energy.csv"), solve_data);
RuntimeStatsCSVWriter stats_csv(resolve_output_path("stats.csv"), *this, t0, dt);
const bool remesh_enabled = args["space"]["remesh"]["enabled"];
#ifndef POLYFEM_WITH_REMESHING
if (remesh_enabled)
log_and_throw_error("Remeshing is not enabled in this build! Set POLYFEM_WITH_REMESHING=ON in CMake to enable it.");
#endif
// const double save_dt = remesh_enabled ? (dt / 3) : dt;

// Save the initial solution
Expand Down Expand Up @@ -249,7 +245,7 @@ namespace polyfem
args["solver"]["contact"]["CCD"]["max_iterations"],
optimization_enabled == solver::CacheLevel::Derivatives,
// Homogenization
macro_strain_constraint,
macro_strain_constraint,
// Periodic contact
args["contact"]["periodic"], periodic_collision_mesh_to_basis,
// Friction form
Expand Down

0 comments on commit 6c7f5e4

Please sign in to comment.