Skip to content

Commit

Permalink
Merge pull request #250 from elieberman3/ejl-fft-viz-fix-1-25
Browse files Browse the repository at this point in the history
EVPFFT viz fix for non-cube voxels
  • Loading branch information
elieberman3 authored Jan 15, 2025
2 parents 4e2c0c3 + cd3f1aa commit 83959e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/EVPFFT/src/write_micro_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ void EVPFFT::write_micro_state_pvtu()
for (int jj = 1; jj <= 3; jj++) {
dum += defgradavg(ii,jj)*xtmp[jj-1];
}
xintp(ii,kx,ky,kz) = dum;
xintp(ii,kx,ky,kz) = dum*delt(ii);
}
}); // end FOR_ALL_CLASS
Kokkos::fence();
Expand Down
2 changes: 1 addition & 1 deletion src/LS-EVPFFT/src/evpfft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ void EVPFFT::init_defgrad() {
for (int ii = 1; ii <= 3; ii++) {
defgradavg(jj,ii) = 0.0;
}
defgradavg(jj,jj) = delt(jj);
defgradavg(jj,jj) = 1.0;
}
}); // end FOR_ALL_CLASS

Expand Down
2 changes: 1 addition & 1 deletion src/LS-EVPFFT/src/write_micro_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ void EVPFFT::write_micro_state_pvtu()
for (int jj = 1; jj <= 3; jj++) {
dum += defgradavg_dual(ii,jj)*xtmp[jj-1];
}
xintp(ii,kx,ky,kz) = dum + ufintp(ii,kx,ky,kz);
xintp(ii,kx,ky,kz) = (dum + ufintp(ii,kx,ky,kz))*delt(ii);
}
}); // end FOR_ALL_CLASS
Kokkos::fence();
Expand Down

0 comments on commit 83959e5

Please sign in to comment.