Output files #982
-
Hi everyone, Is there a way to stop writing output for some particles in function of a custom variable or if the particles exit the domain for example? This could decrease the size of the output and the writing time at the end of each run considerably in some cases. e.g. On the 10th day of a 100 days simulation, Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Philippe, you can simply use
In this example, a constant has been added to the fieldset: If your particles exit the domain and throw an out-of-bounds error, you can also implement the following:
|
Beta Was this translation helpful? Give feedback.
Hi Philippe,
you can simply use
particle.delete()
. This will remove the particle from the active particleset, which means that the output will contain only the observations of that particle up until that moment. An example of this is an 'ageing' kernel:In this example, a constant has been added to the fieldset:
fieldset.add_constant('maxage', <time-in-seconds>)
If your particles exit the domain and throw an out-of-bounds error, you can also implement the following: