Skip to content

Commit

Permalink
Fixed some PCG related bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-koehn committed Aug 12, 2016
1 parent 78fca1b commit 378e2a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/PCG.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void PCG(float * PCG_new, float * PCG_old, float * PCG_dir, int PCG_class){
if((beta[k]<0.0)&&(PCG_BETA==2)){beta[k] = 0.0;}

if(MYID==0){
printf("\n\n parameter class = %d \t beta = %e\n",MYID,k,beta[k]);
printf("\n\n parameter class = %d \t beta = %e\n",k,beta[k]);
}

}
Expand Down
2 changes: 2 additions & 0 deletions src/PSV/FWI_PSV.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ if(GRAD_METHOD==1){
PCG_vec = PCG_class*NX*NY; /* length of one PCG-parameter class */

PCG_old = vector(1,PCG_vec);
PCG_new = vector(1,PCG_vec);
PCG_dir = vector(1,PCG_vec);

}

Expand Down

0 comments on commit 378e2a8

Please sign in to comment.