Determining which ROMS grid particles are in when using nested fields #1578
-
Hello! Is there a way to know what ROMS a particle is located in when using a nested field? I've used this code Thanks for any assistance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @jwongala, what output do you get? Please provide more detailed information. And does the last section of the Nested Fields tutorial, on keeping track on the Fields interpolated not provide some ideas? |
Beta Was this translation helpful? Give feedback.
-
Hi @erikvansebille thank you for providing the link for keeping track of Fields interpolated, that does give me ideas! |
Beta Was this translation helpful? Give feedback.
-
Hi @erikvansebille I used the keeping track on the Fields interpolated to create a grid of 1's for the coarse ROMS and 2's for the fine resolution ROMS I am using for my simulations. I nested the grids of 1's and 2's together and added them to the fieldset with no problems. But once I tried to execute the model I got the following error (screenshot) and I am unsure what it means. Any/all help is much appreciated! I have also attached my script as a .py for you if that is helpful for you. Thank you!
|
Beta Was this translation helpful? Give feedback.
Hi @jwongala,
Looking at the error message (
Error: ufunc 'bitwise_and' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
), I think the issue is with your use of&
in your custom kernels.Try replacing statements such as
with
or possibly