Skip to content

Commit 4e041c7

Browse files
committed
more smallscale changes to unit test
1 parent 7572391 commit 4e041c7

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/evolution.cu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ void evolve(Grid &par,
220220
*gridSize);
221221

222222

223+
/*
223224
// calling the kernel to find the edges
224225
if (dimnum > 1){
225226
find_edges(par, wfc, edges);
@@ -254,6 +255,7 @@ void evolve(Grid &par,
254255
cudaFree(threshold_cpu);
255256
free(edges);
256257
}
258+
*/
257259

258260
}
259261
else if (dimnum == 2){

src/unit_test.cu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,6 @@ void evolve_test(){
11161116
// Setting default values
11171117
Grid par;
11181118

1119-
par.store("xDim", 256);
11201119
par.store("omega", 0.0);
11211120
par.store("gammaY", 1.0);
11221121
par.store("device", 0);
@@ -1173,17 +1172,18 @@ void evolve_test(){
11731172
par.store("write_it", false);
11741173
par.store("energy_calc", true);
11751174
par.store("box_size", 0.00007);
1175+
par.store("xDim", 64);
11761176
par.store("yDim", 1);
11771177
par.store("zDim", 1);
11781178

11791179

11801180
// Running through all the dimensions to check the energy
11811181
for (int i = 2; i <= 3; ++i){
11821182
if (i == 2){
1183-
par.store("yDim", 256);
1183+
par.store("yDim", 64);
11841184
}
11851185
if (i == 3){
1186-
par.store("zDim", 256);
1186+
par.store("zDim", 64);
11871187
}
11881188
par.store("dimnum",i);
11891189
init(par);

0 commit comments

Comments
 (0)