def run_multi_vasp_without_job_from_file(job_name, job_list_file, node_name, cpu_num, node_num, start_job_num, par_job_num): ''' Example: pyvasp run_multi_vasp_without_job_from_file task job_list_file --node_name test_q --cpu_num 24 run multiple vasp task from job_list_file through test_q node whith 24 cpu For more help you can refer to https://pyvaspflow.readthedocs.io/zh_CN/latest/execute.html#run-multi-vasp-without-job-from-file ''' job_list = np.loadtxt(job_list_file, dtype=int) node_name, cpu_num = node_name.split(','), cpu_num.split(',') if len(cpu_num) != len(node_name): raise ValueError( "The length of node_name is not consistent with the length of cpu_num" ) rmvwj(job_name=job_name, job_list=job_list, node_name=node_name, cpu_num=cpu_num, node_num=node_num, start_job_num=start_job_num, par_job_num=par_job_num) pid = os.getpid() os.remove( os.path.join(os.path.expanduser("~"), '.config', 'pyvaspflow', str(pid)))
def run_multi_vasp_without_job(job_name,end_job_num,node_name,cpu_num,node_num,start_job_num,par_job_num): ''' Example: pyvasp run_multi_vasp_without_job task 5 --node_name test_q --cpu_num 24 run multiple vasp task from task0 to task5 through test_q node whith 24 cpu For more help you can refer to https://pyvaspflow.readthedocs.io/zh_CN/latest/execute.html#run-multi-vasp-without-job ''' node_name,cpu_num = node_name.split(','),cpu_num.split(',') if len(cpu_num) != len(node_name): raise ValueError("The length of node_name is not consistent with the length of cpu_num") rmvwj(job_name=job_name,end_job_num=end_job_num,node_name=node_name,cpu_num=cpu_num, node_num=node_num,start_job_num=start_job_num,par_job_num=par_job_num)