-
Hello all, I wanted to implement some specific tagging criteria for refinement. I was able to do this by modifying Tagging.H, Tagging.cpp, and PeleC.cpp. Initially I would get the "refine_eb_type can only be 'static' or 'adaptive'" error message when trying to run a case with my additional criteria in these files (not actually implemented in the input file). This seemed weird as I never specified the eb type and even when I specifically set it to "static" the error continued. I removed some pre-existing criteria so that the total number of tagging parameters were the same before and after my changes and it worked as expected then. Is this sort of behavior expected when editing the Tagging files? I'm not sure if somewhere in the code it expects a specific number of criteria or if that was just coincidental and the problem is somewhere I've missed. I looked at the merge that added tagging on low temperature thresholds and my approach looked pretty much the same. The change I implemented was refining on cells that met two criteria at once - a density gradient and a temperature value. I tied them both to a single maximum refinement level, maybe that is relevant. Thanks in advance for any input! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Thank you for submitting this question! I would have to see the source changes to understand why you saw the error that you did. However, for user defined tagging, we actually recommend that you define a tagging routine in your |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response, I'll try to add tagging on the prob.H file then! Just for the sake of curiosity, here are the changes I made: Tagging.H -
Tagging.cpp -
PeleC.cpp -
This would cause the "refine_eb_type can only be 'static' or 'adaptive'" message even when I didn't flag to refine on the new parameters. Since I added two tagging values and one tagging level parameter, I commented out velerr, velgrad, and max_velerr_lev (I kept max_velgrad_lev) and it worked as expected. |
Beta Was this translation helpful? Give feedback.
Thank you for submitting this question! I would have to see the source changes to understand why you saw the error that you did. However, for user defined tagging, we actually recommend that you define a tagging routine in your
prob.H
file. You can see a dummy example here. You have access to the full state there and can implement any tagging you would like. I hope this helps!