corrected alignment of restart output byte offset. restart test working now
This commit is contained in:
parent
1ee81e74ea
commit
c8554a5641
|
@ -372,6 +372,8 @@ program DAMASK_spectral_Driver
|
||||||
call MPI_File_seek (resUnit,my_offset,MPI_SEEK_SET,ierr)
|
call MPI_File_seek (resUnit,my_offset,MPI_SEEK_SET,ierr)
|
||||||
call MPI_File_write(resUnit, materialpoint_results, size(materialpoint_results), &
|
call MPI_File_write(resUnit, materialpoint_results, size(materialpoint_results), &
|
||||||
MPI_DOUBLE, MPI_STATUS_IGNORE, ierr)
|
MPI_DOUBLE, MPI_STATUS_IGNORE, ierr)
|
||||||
|
my_offset = my_offset + sum(outputSize)
|
||||||
|
call MPI_File_seek (resUnit,my_offset,MPI_SEEK_SET,ierr)
|
||||||
else
|
else
|
||||||
call MPI_File_open(PETSC_COMM_WORLD, &
|
call MPI_File_open(PETSC_COMM_WORLD, &
|
||||||
trim(getSolverWorkingDirectoryName())//trim(getSolverJobName())//'.spectralOut', &
|
trim(getSolverWorkingDirectoryName())//trim(getSolverJobName())//'.spectralOut', &
|
||||||
|
@ -560,10 +562,10 @@ program DAMASK_spectral_Driver
|
||||||
if (mod(inc,loadCases(currentLoadCase)%outputFrequency) == 0_pInt) then ! at output frequency
|
if (mod(inc,loadCases(currentLoadCase)%outputFrequency) == 0_pInt) then ! at output frequency
|
||||||
if (worldrank == 0) &
|
if (worldrank == 0) &
|
||||||
write(6,'(1/,a)') ' ... writing results to file ......................................'
|
write(6,'(1/,a)') ' ... writing results to file ......................................'
|
||||||
my_offset = my_offset + sum(outputSize)
|
|
||||||
call MPI_File_seek (resUnit,my_offset,MPI_SEEK_SET,ierr)
|
|
||||||
call MPI_File_write(resUnit, materialpoint_results, size(materialpoint_results), &
|
call MPI_File_write(resUnit, materialpoint_results, size(materialpoint_results), &
|
||||||
MPI_DOUBLE, MPI_STATUS_IGNORE, ierr)
|
MPI_DOUBLE, MPI_STATUS_IGNORE, ierr)
|
||||||
|
my_offset = my_offset + sum(outputSize)
|
||||||
|
call MPI_File_seek (resUnit,my_offset,MPI_SEEK_SET,ierr)
|
||||||
endif
|
endif
|
||||||
if( loadCases(currentLoadCase)%restartFrequency > 0_pInt .and. & ! at frequency of writing restart information set restart parameter for FEsolving
|
if( loadCases(currentLoadCase)%restartFrequency > 0_pInt .and. & ! at frequency of writing restart information set restart parameter for FEsolving
|
||||||
mod(inc,loadCases(currentLoadCase)%restartFrequency) == 0_pInt) then ! first call to CPFEM_general will write?
|
mod(inc,loadCases(currentLoadCase)%restartFrequency) == 0_pInt) then ! first call to CPFEM_general will write?
|
||||||
|
|
Loading…
Reference in New Issue