diff --git a/chem_stage/runMicroMC.cu b/chem_stage/runMicroMC.cu index 15cff71..023b3da 100644 --- a/chem_stage/runMicroMC.cu +++ b/chem_stage/runMicroMC.cu @@ -406,6 +406,29 @@ void runMicroMC(ChemistrySpec *chemistrySpec, ReactionType *reactType, ParticleD numCurPar = zip_new_end - zip_begin; + /*if(mintd>0) + { + cudaMemcpy(h_posx,d_posx,sizeof(float)*numCurPar, cudaMemcpyDeviceToHost); + cudaMemcpy(h_posy,d_posy,sizeof(float)*numCurPar, cudaMemcpyDeviceToHost); + cudaMemcpy(h_posz,d_posz,sizeof(float)*numCurPar, cudaMemcpyDeviceToHost); + cudaMemcpy(h_ptype,d_ptype,sizeof(unsigned char)*numCurPar, cudaMemcpyDeviceToHost); + int numOfSpec[22]={0}; + float r2=0; + for(int tmptmp=0;tmptmp