Comments (1)
amgcl::make_solver<>
packs together an iterative solver and a preconditioner for convenience. The solver is a lightweight object, and most time during setup is spent on the preconditioner. You could achieve what you need by constructing your own instances of preconditioner (persistent) and solver. Something like this should work:
boost::property_tree::ptree p_prm;
p_prm.put("coarsening.relax", 0.75);
amgcl::runtime::amg<Backend> P(boost::tie(n3, ptr, col, val), p_prm);
boost::property_tree::ptree s_prm;
s_prm.put("tol", 1e-2);
auto S = std::make_shared<amgcl::runtime::iterative_solver<Backend>>(n3, s_prm);
boost::tie(iters, error) = (*S)(P.system_matrix(), P, f, x);
// change the abs tol:
s_prm.put("abstol", 1e-12);
// Rebuild solver, which is a relatively cheap operation:
S = std::make_shared<amgcl::runtime::iterative_solver<Backend>>(n3, s_prm);
boost::tie(iters, error) = (*S)(P.system_matrix(), P, f, x);
from amgcl.
Related Issues (20)
- cuda compute error HOT 2
- Compilation AMGCL problem on AMD architectur with scotch library HOT 2
- ...\boost\preprocessor\control\iif.hpp|25|error: 'BOOST_PP_IIF_0' was not declared in this scope| HOT 11
- Convergence issue with gmres + Eigen backend HOT 1
- blocksystems with different sized blocks HOT 2
- how to use amgcl with gpu HOT 3
- First run slow with CUDA HOT 3
- Performance with AMGCL HOT 1
- No Instance of Constructor for cusparse_ilu0 under Single Precision (float32) HOT 5
- Mixed precision for CUDA HOT 2
- MPI rebuild example HOT 5
- profiler tic toc in parallel code HOT 1
- scoped_ticker HOT 1
- How does the AMGCL library run on windows10 HOT 1
- Can amgcl support for a Schur solver which's matrix are mix block size? HOT 2
- Could Not find Boost: missing: program_options HOT 4
- I do not know how to tune the amgcl to make solver converged HOT 3
- Julia and C Wrapper HOT 2
- Get NaN on floating point precision solver HOT 2
- the solver use of amgcl HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amgcl.