The size of the fields is currently calculated via the product of the number of cells in each direction. The number of cells = number of inner cells + 2. But in case that the computational domain is smaller than the physical domain the fields have to be of the size of the physical domain.
Necessary changes:
Field class: change get_size to return the size of the physical domain
make sure, that everything else is working
correct unit tests/write unit test to cover this case
The size of the fields is currently calculated via the product of the number of cells in each direction. The number of cells = number of inner cells + 2. But in case that the computational domain is smaller than the physical domain the fields have to be of the size of the physical domain. Necessary changes: