diff --git a/AMSS_NCKU_source/Parallel.C b/AMSS_NCKU_source/Parallel.C index 713a6a7..c0df582 100644 --- a/AMSS_NCKU_source/Parallel.C +++ b/AMSS_NCKU_source/Parallel.C @@ -72,14 +72,14 @@ int Parallel::partition3(int *nxyz, int split_size, int *min_width, int cpusize, int n; block_size = shape[0] * shape[1] * shape[2]; - n = Mymax(1, (block_size + split_size / 2) / split_size); + n = Mymax(1, (block_size + split_size / 2) / split_size); maxnx = Mymax(1, shape[0] / min_width[0]); - maxnx = Mymin(cpusize, maxnx); + maxnx = Mymin(cpusize, maxnx); maxny = Mymax(1, shape[1] / min_width[1]); - maxny = Mymin(cpusize, maxny); + maxny = Mymin(cpusize, maxny); maxnz = Mymax(1, shape[2] / min_width[2]); - maxnz = Mymin(cpusize, maxnz); + maxnz = Mymin(cpusize, maxnz); fx = (double)shape[0] / (shape[0] + shape[1] + shape[2]); fy = (double)shape[1] / (shape[0] + shape[1] + shape[2]); fz = (double)shape[2] / (shape[0] + shape[1] + shape[2]); @@ -3504,7 +3504,7 @@ int Parallel::data_packermix(double *data, MyList *src, MyLis return size_out; } -// + void Parallel::transfer(MyList **src, MyList **dst, MyList *VarList1 /* source */, MyList *VarList2 /*target */, int Symmetry) @@ -3512,7 +3512,16 @@ void Parallel::transfer(MyList **src, MyList **src, MyList