ECP-WarpX / WarpX

WarpX is an advanced electromagnetic & electrostatic Particle-In-Cell code.
https://ecp-warpx.github.io
Other
309 stars 195 forks source link

`MultiFabRegister`: replace `has` with `has_vector` for vectors #5305

Closed EZoni closed 1 month ago

EZoni commented 1 month ago

Originally posted in https://github.com/ECP-WarpX/WarpX/pull/5230#discussion_r1772068317.

As a follow-up on #5230, we should replace has with has_vector wherever possible, so in most occurrences where has is called to check if a vector field exists in the register, unless we intentionally want to check only a single specific direction.