GiordanoAgateRSE / SPHERA

SPHERA (RSE SpA): Lagrangian Computational Fluid Dynamics (LCFD) - Smoothed Particle Hydrodynamics (SPH) research code. Applications: subcatchment flash floods and fast landslides for the safety of hydroelectric plants, electrical substations and electricity pylons.
GNU General Public License v3.0
47 stars 41 forks source link

Fix compilation error caused by preprocessor variable in SPACE_3D #9

Closed chqiao closed 3 years ago

chqiao commented 3 years ago

'BC_zmax_vertices' is valid only if the 'SPACE_3D' is defined. Therefore, without this declaration, it will cause a compilation error. Like this, `Post_processing/Memo_Results.f90:96:50:

96 | if (allocated(Partz(i_zone)%BC_zmax_vertices)) then | 1 Error: ‘bc_zmax_vertices’ at (1) is not a member of the ‘tyzone’ structure Post_processing/Memo_Results.f90:97:55:

97 | size_aux = size(Partz(i_zone)%BC_zmax_vertices,1) | 1 Error: ‘bc_zmax_vertices’ at (1) is not a member of the ‘tyzone’ structure Post_processing/Memo_Results.f90:98:13:

98 | else | 1 Error: Unexpected ELSE statement at (1) Post_processing/Memo_Results.f90:100:9:

100 | endif | 1 Error: Expecting END DO statement at (1)

ghost commented 3 years ago

Thanks Qiao Cheng for your contribution Andrea