external Dirichlet BC #4628
-
Hi, I am learning The second question is whether the input arguments of Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The IntVect version works for both GPU and CPU builds, whereas the Box version is for CPU builds only. So you don't actually need to worry about the Box version. It's this way for historical reasons. The GPU support was added in a way that it does not break existing codes. So we added a new interface (i.e., the IntVect version). I don't think you should change the interface of dummy_cpu_fill_extdir. It does not buy you much. If you really want to, you certainly can. You will need to have your own version of CpuBndryFuncFab. You could also have your own version of PhysBCFunct that does not use CpuBndaryFuncFab and dummy_cpu_fill_exidir at all. |
Beta Was this translation helpful? Give feedback.
The IntVect version works for both GPU and CPU builds, whereas the Box version is for CPU builds only. So you don't actually need to worry about the Box version. It's this way for historical reasons. The GPU support was added in a way that it does not break existing codes. So we added a new interface (i.e., the IntVect version).
I don't think you should change the interface of dummy_cpu_fill_extdir. It does not buy you much. If you really want to, you certainly can. You will need to have your own version of CpuBndryFuncFab. You could also have your own version of PhysBCFunct that does not use CpuBndaryFuncFab and dummy_cpu_fill_exidir at all.