The values of the adjoint field are stored in the data attribute. In the constructor, this is resized to volume*4 https://github.com/urbach/su2/blob/7d4a9bfd9b7d6ef20e3f91e5bcbca2f42d038d11/include/adjointfield.hh#L107
but it should be volume*ndims. This didn't cause issues on previous runs because all loops have limits deduced by other methods of the class, so the extra entries of the array are simply unused when ndims < 4
The values of the adjoint field are stored in the
dataattribute. In the constructor, this is resized tovolume*4https://github.com/urbach/su2/blob/7d4a9bfd9b7d6ef20e3f91e5bcbca2f42d038d11/include/adjointfield.hh#L107but it should be
volume*ndims. This didn't cause issues on previous runs because all loops have limits deduced by other methods of the class, so the extra entries of the array are simply unused whenndims < 4