mfem: An error when using AMGX solver.
Hi Everybody! I am trying to apply AMGX solver in my problem. When I perform FEM using AMGX solver (combine with cuda), the vector displacement I receive is not right. Then I comeback the example 1 (https://github.com/mfem/mfem/blob/master/examples/amgx/ex1.cpp) and run the example 1 with cuda. I try printing the vector displacement like:
for(int i=0;i<X.Size();i++){
cout<<X(i)<<" ";
}
but I receive the result not right, too. It returns all garbage values. I think it is an error or I do not understand it. After FEM process, I would like to use the vector displacement to implement my problem. May you help me? Thank you!
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (11 by maintainers)
Great glad I can help. The integration of AmgX into MFEM is still fairly new and I’m not sure if we have tried it for elasticity problems yet (aside from here). I’m not 100% sure on what boomer is doing and if it can be done with AmgX yet, but as we learn more we can definitely add an example 2p with AmgX. Still early days.
@artv3 Thanks for the quick reply.
Yes. I was using default settings, but I will give your settings a shot.
Edit: Yes. That seems to have done the trick. Thanks.
@jonwong12 thanks for reaching out. Was it the default settings that you tried? The integration is fairly new and we are still assessing settings/performance with AmgX. One thing to try is a different smoother in AmgX, using branch (https://github.com/mfem/mfem/pull/1904), example 1p can be modified to take in an external JSON configuration:
Using the following JACOBI_L1 smoother I was able to go up to order 4 using your mesh: