Repository navigation
Confusion about global versus local arrays #525
|
If I run in parallel mode (eg |
Replies: 2 comments 2 replies
|
Can I just use |
|
The easiest way to achieve this within setup files is to pass Otherwise, you can use |
The easiest way to achieve this within setup files is to pass
dist_safe=Falseto@veros_routineand to work on global arrays instead. Routines marked as non-dist safe will automatically perform gather and scatter operations at their boundaries. The code is executed on the main process which shouldn't be an issue for routines that are only called once (i.e., all exceptset_forcingandafter_timestep).Otherwise, you can use
veros.runtime_state.proc_idxto get the(i, j)index of the current process.