QuantumPlasmas-IST / TETHYS-Graphene-Hydrodynamic-Simulation

Hydrodynamic simulation of plasmons in graphene
MIT License
6 stars 0 forks source link

[[Bug]] Non-square domains #38

Closed pcosme closed 4 years ago

pcosme commented 4 years ago

It seems that there is a problem when defining rectangular domains.

1. The HDF5 file is not saving the matrix properly, it shifts each line +1 at each column 2. We should definitely solve the question of the relations between the Δx and Δy with the efective lengths L and W and number of points Nx and Ny

pcosme commented 4 years ago

At commit 2f34ec412ce98acbb72d33a9dac51a3f58f3d471

The HDF% matrix bug was solved, the order of the hdf file were wrong, it must be dim=(Ny,Nx) the creation of the file was corrected to have

dimsf[0] = static_cast<hsize_t>(Ny); dimsf[1] = static_cast<hsize_t>(Nx);