From 2ad54eba43d207ab3ebd5d75de8556b32897c6b6 Mon Sep 17 00:00:00 2001 From: cflin Date: Mon, 17 Jul 2023 10:25:59 +0800 Subject: [PATCH] append readme --- README.md | 2 +- src/ThermoelasticTop3d.cu | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 89870cc..c9c2ffd 100644 --- a/README.md +++ b/README.md @@ -67,4 +67,4 @@ make -j4 NOTE: 1. `"//*"` in `examples/*/config.json` file mean comments. 2. you can modify `CONFIG_FILE`, `OUTPUT_DIR` and `ASSETS_DIR` in `examples/*/CMAKEList.txt`. - +3. you can modify the linear solver arguments `prm.solver.tol` and `prm.solver.maxiter` in `src/LinearSolver/Amgcl.h` or `src/LinearSolver/AmgclCuda.h`. diff --git a/src/ThermoelasticTop3d.cu b/src/ThermoelasticTop3d.cu index a371875..7e03c65 100644 --- a/src/ThermoelasticTop3d.cu +++ b/src/ThermoelasticTop3d.cu @@ -162,10 +162,10 @@ da::sha::top::Tensor3d da::sha::top::ThermoelasticTop3d::TopOptMainLoop() { ; sp_mech_top3d_->IntroduceFixedDofs(sp_mech_top3d_->K_, F); - Timer::tic(); +// Timer::tic(); INIT_SOLVER(solver,sp_mech_top3d_->K_); sp_mech_top3d_->U_ = solver.solve(F); - Timer::toc(); +// Timer::toc(); // compliance @@ -353,7 +353,7 @@ da::sha::top::Tensor3d da::sha::top::ThermoelasticTop3d::TopOptMainLoop() { spdlog::critical("Iter: {:3d}, Comp: {:.3e}, Vol: {:.2f}, Change: {:f}", loop, c, v, change); - std::cout << fval.transpose() << std::endl; +// std::cout << fval.transpose() << std::endl; #ifdef WRITE_TENSOR_IN_LOOP // extract vtk ele_to_write(idx_of_ele_in_use) = xPhys_col;