Skip to content

Commit

Permalink
added document for CCL and CCDTL, checked read-in particle # against
Browse files Browse the repository at this point in the history
input particle #, output warning when total particle # less than 1.
  • Loading branch information
qianglbl committed Aug 1, 2024
1 parent 90b7f9d commit cd5f58c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Binary file modified doc/ImpactTv2.pdf
Binary file not shown.
4 changes: 4 additions & 0 deletions src/Appl/Distribution.f90
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,10 @@ subroutine read_Dist(this,nparam,distparam,ib)
sum2 = 0.0

read(12,*)nptot
if(nptot.ne.this%Npt) then
print*,"Error: Total particle # in the partcl.data file is different from that in the ImpactT.in file."
stop
endif
avgpts = nptot/nproc
nleft = nptot - avgpts*nproc
if(myid.lt.nleft) then
Expand Down

0 comments on commit cd5f58c

Please sign in to comment.