Skip to content

Commit 8780f07

Browse files
committed
change width of gaussian to illicit more structure in the fft
1 parent b17550b commit 8780f07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ExampleCodes/FFT/Basic/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ int main (int argc, char* argv[])
133133
Real x = prob_lo_x + (i+0.5) * dx[0];
134134
Real y = prob_lo_y + (j+0.5) * dx[1];
135135
#if (AMREX_SPACEDIM == 2)
136-
phi_ptr(i,j,k) = std::exp(-10.*((x-cen_x)*(x-cen_x)+(y-cen_y)*(y-cen_y)));
136+
phi_ptr(i,j,k) = std::exp(-500.*((x-cen_x)*(x-cen_x)+(y-cen_y)*(y-cen_y)));
137137
#elif (AMREX_SPACEDIM == 3)
138138
Real z = prob_lo_z + (k+0.5) * dx[2];
139-
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)));
139+
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)));
140140
#endif
141141

142142
});

0 commit comments

Comments
 (0)