Skip to content

Commit

Permalink
change width of gaussian to illicit more structure in the fft
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnonaka committed Dec 19, 2024
1 parent b17550b commit 8780f07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ExampleCodes/FFT/Basic/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ int main (int argc, char* argv[])
Real x = prob_lo_x + (i+0.5) * dx[0];
Real y = prob_lo_y + (j+0.5) * dx[1];
#if (AMREX_SPACEDIM == 2)
phi_ptr(i,j,k) = std::exp(-10.*((x-cen_x)*(x-cen_x)+(y-cen_y)*(y-cen_y)));
phi_ptr(i,j,k) = std::exp(-500.*((x-cen_x)*(x-cen_x)+(y-cen_y)*(y-cen_y)));
#elif (AMREX_SPACEDIM == 3)
Real z = prob_lo_z + (k+0.5) * dx[2];
phi_ptr(i,j,k) = std::exp(-10.*((x-cen_x)*(x-cen_x)+(y-cen_y)*(y-cen_y)+(z-cen_z)*(z-cen_z)));
phi_ptr(i,j,k) = std::exp(-500.*((x-cen_x)*(x-cen_x)+(y-cen_y)*(y-cen_y)+(z-cen_z)*(z-cen_z)));
#endif

});
Expand Down

0 comments on commit 8780f07

Please sign in to comment.