TABLE OF CONTENTS
tests/testAAE [ Unit tests ]
[ Top ] [ Unit tests ]
NAME
testAAE
SYNOPSIS
!$Id: testAAE.f90 380 2017-03-22 11:03:09Z mexas $ program testAAE
PURPOSE
DESCRIPTION
Checking nucleation and seed initialisation.
NOTES
The program must be called with 2 command line arguments, both positive integers. These are codimensions along 1 and 2. The number of images must be such that codimension3 = num_images()/( codimension1 * codimension3 ) is a positive integer. Example:
cafrun -np 16 ./testAAE.x 2 2 ! OpenCoarrays
or
./testAAE.x 2 2 ! Intel, Cray
which will make the third codimension equal to 16/(2*2)=4.
AUTHOR
Anton Shterenlikht
COPYRIGHT
See LICENSE
USES
cgca testaux
USED BY
Part of CGPACK test suite
SOURCE
use testaux implicit none integer(kind=idef) :: l1,u1,l2,u2,l3,u3,col1,cou1,col2,cou2,col3, & nimages,myimage,codim(3)[*] logical(kind=ldef),parameter :: yesdebug=.true., nodebug=.false. integer(kind=iarr),allocatable :: space1(:,:,:,:)[:,:,:] !*********************************************************************72 ! first executable statement nimages=num_images() myimage=this_image() ! do a check on image 1 if (myimage .eq. 1) then call getcodim(nimages,codim) ! print a banner call banner("AAE") ! print the parameter values call cgca_pdmp write (*,'(a,i0,a)') "running on ", nimages, " images in a 3D grid" write (*,*) "codim:", codim end if sync all codim(:) = codim(:)[1] if (myimage .eq. 2) call system("sleep 1") l1=1 u1=10 l2=l1 u2=u1 l3=l1 u3=u1 col1=1 cou1=codim(1) col2=1 cou2=codim(2) col3=1 if (myimage .eq. 1) then write (*,'(a,2(i0,":",i0,","),i0,":",i0,")")') & "bounds: (",l1,u1,l2,u2,l3,u3 write (*,'(a,2(i0,":",i0,","),i0,":",i0,")")') & "cobounds: (",col1,cou1,col2,cou2,col3, & nimages/((cou1-col1+1)*(cou2-col2+1))+col3-1 end if ! allocate coarray call cgca_as(l1,u1,l2,u2,l3,u3,col1,cou1,col2,cou2,col3,1,space1) ! initialise random number seed call cgca_irs(yesdebug) ! initialise coarray to liquid state space1 = cgca_liquid_state sync all call cgca_swci(space1,cgca_state_type_grain,10,"z1.raw") sync all ! nucleate, sync in the routine, no need to sync in the program call cgca_nr(space1,10,yesdebug) call cgca_swci(space1,cgca_state_type_grain,10,"z2.raw") sync all call cgca_ds(space1) end program testAAE