Skip to content

Commit c6b04c8

Browse files
committed
Remove two pragma in hw3 part1
1 parent 16fe190 commit c6b04c8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

HW3/part1/cg_impl.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ void makea(int n,
213213
vecset(n, vc, ivc, &nzv, iouter + 1, 0.5);
214214
arow[iouter] = nzv;
215215

216-
#pragma omp parallel for
217216
for (ivelt = 0; ivelt < nzv; ivelt++) {
218217
acol[iouter][ivelt] = ivc[ivelt] - 1;
219218
aelt[iouter][ivelt] = vc[ivelt];
@@ -560,7 +559,6 @@ void iterate(double *zeta, int *it) {
560559
//---------------------------------------------------------------------
561560
// Normalize z to obtain x
562561
//---------------------------------------------------------------------
563-
#pragma omp parallel for
564562
for (j = 0; j < lastcol - firstcol + 1; j++) {
565563
x[j] = norm_temp2 * z[j];
566564
}

0 commit comments

Comments
 (0)