Skip to content

Commit

Permalink
bug fix in compute_forces_acoustic_noDev.f90 and save_and_compare_cpu…
Browse files Browse the repository at this point in the history
…_vs_gpu.c
  • Loading branch information
Daniel Peter committed May 23, 2013
1 parent 7bdbbd8 commit c024ff2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/cuda/save_and_compare_cpu_vs_gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <stdlib.h>
#include <math.h>
#include <errno.h>
#include <string.h>

#ifdef WITH_MPI
#include <mpi.h>
Expand Down Expand Up @@ -111,6 +112,7 @@ void get_max_from_surface_file_(int* nodes_per_iterationf,int* NSTEP) {
float* vector = (float*)malloc(nodes_per_iteration*sizeof(float));
float max_val;
int i;
max_val = 0.0;
for(it=0;it<*NSTEP;it++) {
int pos = (sizeof(float)*nodes_per_iteration)*(it);
fseek(fp,pos,SEEK_SET);
Expand Down
2 changes: 1 addition & 1 deletion src/specfem3D/compute_forces_acoustic_noDev.f90
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ subroutine compute_forces_acoustic_noDev(iphase,NSPEC_AB,NGLOB_AB, &
!
use specfem_par,only: CUSTOM_REAL,NGLLX,NGLLY,NGLLZ,TINYVAL_SNGL,&
STACEY_ABSORBING_CONDITIONS,PML_CONDITIONS
use pml_par, only: ELASTIC_SIMULATION,NSPEC_CPML,is_CPML, spec_to_CPML, &
use pml_par, only: NSPEC_CPML,is_CPML, spec_to_CPML, &
k_store_x,k_store_y,k_store_z,d_store_x,d_store_y,d_store_z,alpha_store,&
PML_dpotential_dxl,PML_dpotential_dyl,PML_dpotential_dzl,&
PML_dpotential_dxl_new,PML_dpotential_dyl_new,PML_dpotential_dzl_new,&
Expand Down

0 comments on commit c024ff2

Please sign in to comment.