Skip to content

Commit

Permalink
Fixed issue in .xmf file geneartor. (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-costa authored Nov 27, 2024
1 parent 9635553 commit 48a85be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/out2d.h90
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
!
! modify the calls below as desired
!
call write_visu_2d(datadir,'u_slice_fld_'//fldnum//'.bin','log_visu_2d_slice_1.out','Velocity_X', &
call write_visu_2d(datadir,'vex_slice_fld_'//fldnum//'.bin','log_visu_2d_slice_1.out','Velocity_X', &
2,ng(2)/2,ng,time,istep, &
u(1:n(1),1:n(2),1:n(3)))
call write_visu_2d(datadir,'v_slice_fld_'//fldnum//'.bin','log_visu_2d_slice_1.out','Velocity_Y', &
call write_visu_2d(datadir,'vey_slice_fld_'//fldnum//'.bin','log_visu_2d_slice_1.out','Velocity_Y', &
2,ng(2)/2,ng,time,istep, &
v(1:n(1),1:n(2),1:n(3)))
call write_visu_2d(datadir,'w_slice_fld_'//fldnum//'.bin','log_visu_2d_slice_1.out','Velocity_Z', &
call write_visu_2d(datadir,'vez_slice_fld_'//fldnum//'.bin','log_visu_2d_slice_1.out','Velocity_Z', &
2,ng(2)/2,ng,time,istep, &
w(1:n(1),1:n(2),1:n(3)))
call write_visu_2d(datadir,'p_slice_fld_'//fldnum//'.bin','log_visu_2d_slice_1.out','Pressure_P', &
call write_visu_2d(datadir,'pre_slice_fld_'//fldnum//'.bin','log_visu_2d_slice_1.out','Pressure_P', &
2,ng(2)/2,ng,time,istep, &
p(1:n(1),1:n(2),1:n(3)))
2 changes: 1 addition & 1 deletion utils/visualize_fields/gen_xdmf_easy/write_xdmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#
# sort elements by increasing isave
#
saves = np.sort(saves, order='isave')
saves = np.sort(saves, order=['isave', 'variable'])
#
# harvest some information from the log file
#
Expand Down
2 changes: 1 addition & 1 deletion utils/visualize_fields/gen_xdmf_easy/write_xdmf_hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#
# sort elements by increasing isave
#
saves = np.sort(saves, order='isave')
saves = np.sort(saves, order=['isave', 'variable'])
#
# harvest some information from the log file
#
Expand Down

0 comments on commit 48a85be

Please sign in to comment.