Problems in setting data for β in MLABecLaplacian. #3843
Unanswered
solarmaterial
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Is this related to #3834? What's in Backtrace.0? The code above has potential issues. For it to be more robust, you will need to call FillBoundary before that and you should use the lo and hi of Geometry's Domain Box, not the local tilebox or validbox. And If you put your code or a reproducer in a public github repo, I am happy to take a look. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey amrex team,$\beta$ in the equation $(A\alpha - B\nabla \cdot \beta \nabla)\phi^{n+1} = \phi^n$ . In $\beta$ is not affected by the $\phi$ . Now the equation become non-linearzed, and the $\phi$ , so I have to transfer data from the cell-centerd $\phi$ to the face type $\beta$ , and I use
It's me again. Now I have a question about adding data to the face type Multifab
HeatEquation_EX3_C
, we know that the data of theface_bcoef
is simply set todt
byface_bcoef[idim].setVal(dt);
since theface_bcoef
do effected by theMFIter
to do so. Here are two ways I've tried,(phi_k
is a cell-centerd Multifab).(1d calculation)
code 1. (for(MFIter mfi(face_bcoef[0]);......const Box& bx = mfi.validbox();)
code 2.(for ( MFIter mfi(phi_k); mfi.isValid();...... const Box& xbx = mfi.nodaltilebox(0);)
the$\alpha$ ,($\beta$ have no NaNs either, the MLMG should work at least one iteration. I've set
face_bcoef[0]
printed by the above codes are exactly the same, after I load them into the MLMG solver, the solver both broken at the beginning. Why is that? Since the initial rhs has no NaNs, and theacoef.setVal(1.0);
)max_grid_size = n_cell =256
so that theface_bcoef[0]
has no overlapping point to make sure theparallelfor
above is correct.will the code above be able to make sure that the$\beta$ is correctly passed to the MLMG? Or did I miss something? I'm sorry for bothering you again. Still looking forward to your reply.
Yours sincerely,
solar
Beta Was this translation helpful? Give feedback.
All reactions