예제 #1
0
    def checkvalues(self):
        import check

        all_success = True

        success = check.vals('info_scatter_md')
        if success is not 0:
            print('Error in gather values')
            all_success = False
        success = check.vals('info_gather_cfd')
        if success is not 0:
            print('Error in scatter values')
            all_success = False
        success = check.vals('info_CFD_send')
        if success is not 0:
            print('Error in CFD send values')
            all_success = False
        success = check.vals('info_MD_send')
        if success is not 0:
            print('Error in MD send values')
            all_success = False
        success = check.vals('info_MD_recv')
        if success is not 0:
            print('Error in MD recv values')
            all_success = False
        success = check.vals('info_CFD_recv')
        if success is not 0:
            print('Error in CFD recv values')
            all_success = False

        if all_success:
            print('jobID ' + str(self.jobID) + ' value checks successful!')
예제 #2
0
	def checkvalues(self):
		import check

		all_success = True

		success = check.vals('info_scatter_md')
		if success is not 0:
			print('Error in gather values')
			all_success = False
		success = check.vals('info_gather_cfd')
		if success is not 0:
			print('Error in scatter values')
			all_success = False
		success = check.vals('info_CFD_send')
		if success is not 0:
			print('Error in CFD send values')
			all_success = False
		success = check.vals('info_MD_send')
		if success is not 0:
			print('Error in MD send values')
			all_success = False
		success = check.vals('info_MD_recv')
		if success is not 0:
			print('Error in MD recv values')
			all_success = False
		success = check.vals('info_CFD_recv')
		if success is not 0:
			print('Error in CFD recv values')
			all_success = False

	
		if all_success:
			print('jobID ' + str(self.jobID) + ' value checks successful!')
예제 #3
0
cmd = 'mpiexec -n ' + str(nproc) + ' ./a.out' 
print(cmd)
system(cmd)

cmd = 'cat fort.1* > info_realms     2> /dev/null && rm fort.1*'
system(cmd)
cmd = 'cat fort.2* > info_MD_recv    2> /dev/null && rm fort.2*'
#cmd = 'cat fort.2* > info_olap_MD    2> /dev/null && rm fort.2*'
system(cmd)
cmd = 'cat fort.3* > info_graph      2> /dev/null && rm fort.3*'
system(cmd)
cmd = 'cat fort.4* > info_MD_send    2> /dev/null && rm fort.4*'
system(cmd)
cmd = 'cat fort.5* > info_CFD_recv   2> /dev/null && rm fort.5*'
system(cmd)
cmd = 'cat fort.6* > info_maps       2> /dev/null && rm fort.6*'
system(cmd)
cmd = 'cat fort.7* > info_scatter_md 2> /dev/null && rm fort.7*'
system(cmd)
cmd = 'cat fort.8* > info_gather_cfd 2> /dev/null && rm fort.8*'
system(cmd)
cmd = 'cat fort.9* > info_CFD_send   2> /dev/null && rm fort.9*'
system(cmd)

check.vals('info_scatter_md')
check.vals('info_gather_cfd')
check.vals('info_CFD_send')
check.vals('info_MD_send')
check.vals('info_MD_recv')
check.vals('info_CFD_recv')
예제 #4
0
cmd = 'mpiexec -n ' + str(nproc) + ' ./a.out'
print(cmd)
system(cmd)

cmd = 'cat fort.1* > info_realms     2> /dev/null && rm fort.1*'
system(cmd)
cmd = 'cat fort.2* > info_MD_recv    2> /dev/null && rm fort.2*'
#cmd = 'cat fort.2* > info_olap_MD    2> /dev/null && rm fort.2*'
system(cmd)
cmd = 'cat fort.3* > info_graph      2> /dev/null && rm fort.3*'
system(cmd)
cmd = 'cat fort.4* > info_MD_send    2> /dev/null && rm fort.4*'
system(cmd)
cmd = 'cat fort.5* > info_CFD_recv   2> /dev/null && rm fort.5*'
system(cmd)
cmd = 'cat fort.6* > info_maps       2> /dev/null && rm fort.6*'
system(cmd)
cmd = 'cat fort.7* > info_scatter_md 2> /dev/null && rm fort.7*'
system(cmd)
cmd = 'cat fort.8* > info_gather_cfd 2> /dev/null && rm fort.8*'
system(cmd)
cmd = 'cat fort.9* > info_CFD_send   2> /dev/null && rm fort.9*'
system(cmd)

check.vals('info_scatter_md')
check.vals('info_gather_cfd')
check.vals('info_CFD_send')
check.vals('info_MD_send')
check.vals('info_MD_recv')
check.vals('info_CFD_recv')