1 / 11

Paralleling the Integrate Method for Pulse Laser Transport Code

Paralleling the Integrate Method for Pulse Laser Transport Code. MTH 6240 By Xiaodong Lu. Mathematical formulation: G (z, t) =. Assign LOCAL_NR, VR. NR = NT-NZ+10 NNPP = MOD(NR,P) IF(NNPP .EQ. 0)THEN LOCAL_NR = INT(NR/P) ELSE IF(my_rank .LE. NNPP-1)THEN

noam
Télécharger la présentation

Paralleling the Integrate Method for Pulse Laser Transport Code

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Paralleling the Integrate Method for Pulse Laser Transport Code MTH 6240 By Xiaodong Lu

  2. Mathematical formulation: G (z, t) =

  3. Assign LOCAL_NR, VR NR = NT-NZ+10 NNPP = MOD(NR,P) IF(NNPP .EQ. 0)THEN LOCAL_NR = INT(NR/P) ELSE IF(my_rank .LE. NNPP-1)THEN LOCAL_NR = INT(NR/P) + 1 ELSE LOCAL_NR = INT(NR/P) END IF END IF

  4. IF(NNPP .EQ. 0)THEN RV =my_rank*LOCAL_NR*DRV ELSE IF (my_rank .LE. NNPP-1)THEN RV = my_rank*LOCAL_NR*DRV ELSE RV = NNPP*(LOCAL_NR+1)* $ DRV+(my_rank -NNPP) $ *LOCAL_NR*DRV END IF END IF

  5. MPI CALL CALL MPI_ALLREDUCE(LOCAL_SUMGV,SUMGV, $ 1, MPI_DOUBLE_PRECISION, $ MPI_SUM,MPI_COMM_WORLD, IERR)

  6. Sp= • Cp= • Ep= Sp/p

More Related