Skip to content

Commit 027ba1d

Browse files
committed
changes ordering (in energy.dat output)
1 parent f60beff commit 027ba1d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/specfem3D/compute_energy.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,8 @@ subroutine compute_energy_generic_slow()
453453
! write the total to disk from the main
454454
if (myrank == 0) then
455455
total_energy_glob = kinetic_energy_glob + potential_energy_glob
456-
! format: #timestep #kinetic_energy #potential_energy #total_energy
457-
write(IOUT_ENERGY,*) it,sngl(kinetic_energy_glob),sngl(potential_energy_glob),sngl(total_energy_glob)
456+
! format: #timestep #total_energy #kinetic_energy #potential_energy
457+
write(IOUT_ENERGY,*) it,sngl(total_energy_glob),sngl(kinetic_energy_glob),sngl(potential_energy_glob)
458458
! flush to file
459459
flush(IOUT_ENERGY)
460460
endif
@@ -876,8 +876,8 @@ subroutine compute_energy_fast_Deville()
876876
! write the total to disk from the main
877877
if (myrank == 0) then
878878
total_energy_glob = kinetic_energy_glob + potential_energy_glob
879-
! format: #timestep #kinetic_energy #potential_energy #total_energy
880-
write(IOUT_ENERGY,*) it,sngl(kinetic_energy_glob),sngl(potential_energy_glob),sngl(total_energy_glob)
879+
! format: #timestep #total_energy #kinetic_energy #potential_energy
880+
write(IOUT_ENERGY,*) it,sngl(total_energy_glob),sngl(kinetic_energy_glob),sngl(potential_energy_glob)
881881
! flush to file
882882
flush(IOUT_ENERGY)
883883
endif

src/specfem3D/iterate_time.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ subroutine iterate_time()
100100
if (OUTPUT_ENERGY .and. myrank == 0) then
101101
open(unit=IOUT_ENERGY,file=trim(OUTPUT_FILES)//'energy.dat',status='unknown',action='write')
102102
! format: #timestep #kinetic_energy #potential_energy #total_energy
103-
write(IOUT_ENERGY,*) "#timestep #kinetic_energy #potential_energy #total_energy"
103+
write(IOUT_ENERGY,*) "#timestep #total_energy #kinetic_energy #potential_energy"
104104
flush(IOUT_ENERGY)
105105
endif
106106

src/specfem3D/iterate_time_undoatt.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ subroutine iterate_time_undoatt()
240240
if (OUTPUT_ENERGY .and. myrank == 0) then
241241
open(unit=IOUT_ENERGY,file=trim(OUTPUT_FILES)//'energy.dat',status='unknown',action='write')
242242
! format: #timestep #kinetic_energy #potential_energy #total_energy
243-
write(IOUT_ENERGY,*) "#timestep #kinetic_energy #potential_energy #total_energy"
243+
write(IOUT_ENERGY,*) "#timestep #total_energy #kinetic_energy #potential_energy"
244244
flush(IOUT_ENERGY)
245245
endif
246246

0 commit comments

Comments
 (0)