Skip to content

Commit

Permalink
Merge pull request #348 from polyfem/pr_pressure_optimization
Browse files Browse the repository at this point in the history
mark tests as slow
  • Loading branch information
arvigj committed Jun 13, 2024
2 parents 510d213 + e397df4 commit 8486c66
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/test_diff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ TEST_CASE("shape-pressure-nodes-2d", "[test_adjoint]")
verify_adjoint(*nl_problem, x, velocity_discrete, 1e-7, 1e-3);
}

TEST_CASE("static-control-pressure-nodes-3d", "[test_adjoint]")
TEST_CASE("static-control-pressure-nodes-3d", "[.][test_adjoint]")
{
const std::string path = POLYFEM_DATA_DIR + std::string("/differentiable/input/");
json in_args;
Expand Down Expand Up @@ -1023,7 +1023,7 @@ TEST_CASE("shape-transient-friction-sdf", "[test_adjoint]")
verify_adjoint(*nl_problem, x, velocity_discrete, 1e-7, 1e-5);
}

TEST_CASE("3d-shape-mesh-target", "[test_adjoint]")
TEST_CASE("3d-shape-mesh-target", "[.][test_adjoint]")
{
json opt_args;
load_json(append_root_path("3d-shape-mesh-target-opt.json"), opt_args);
Expand Down Expand Up @@ -1187,8 +1187,7 @@ TEST_CASE("barycenter", "[test_adjoint]")
// verify_adjoint_dirichlet(func, state_ptr, control_param, velocity_discrete, perturb_fn_json, 1e-7, 1e-5);
// }

#ifdef NDEBUG
TEST_CASE("shape-pressure-nodes-3d", "[test_adjoint]")
TEST_CASE("shape-pressure-nodes-3d", "[.][test_adjoint]")
{
const std::string path = POLYFEM_DATA_DIR + std::string("/differentiable/input/");
json in_args;
Expand Down Expand Up @@ -1235,7 +1234,7 @@ TEST_CASE("shape-pressure-nodes-3d", "[test_adjoint]")
verify_adjoint(*nl_problem, x, velocity_discrete, 1e-7, 1e-3);
}

TEST_CASE("control-pressure-nodes-3d", "[test_adjoint]")
TEST_CASE("control-pressure-nodes-3d", "[.][test_adjoint]")
{
const std::string path = POLYFEM_DATA_DIR + std::string("/differentiable/input/");
json in_args;
Expand Down Expand Up @@ -1279,5 +1278,3 @@ TEST_CASE("control-pressure-nodes-3d", "[test_adjoint]")

verify_adjoint(*nl_problem, x, velocity_discrete, 1e-8, 1e-3);
}

#endif

0 comments on commit 8486c66

Please sign in to comment.