def generate_param_file_with_args(parent_parser): args = pparse_command_line(parent_parser) try: config = adios.adiosConfig(args.project + '_skel.xml') except (IOError): print("XXError reading " + args.project + "_skel.xml. Try running skel xml " + args.project + " first.") return 1 outfilename = args.project + '_params.xml' # Only proceed if outfilename does not already exist, or if -f was used if os.path.exists(outfilename) and not args.force: print("%s exists, aborting. Delete the file or use -f to overwrite." % outfilename) return 999 try: config = adios.adiosConfig(args.project + '_skel.xml') except (IOError): print("Error reading " + args.project + "_skel.xml. Try running skel xml " + args.project + " first.") return 1 generate_param_file(args.project, outfilename, config, args.group, args.bpls)
def main(argv=None): skel_settings.create_settings_dir_if_needed() args = parse_command_line() config = adios.adiosConfig(args.project + '_skel.xml') params = skelconf.skelConfig(args.project + '_params.xml') create_sources(params, config, args.project)
def main(argv=None): skel_settings.create_settings_dir_if_needed() args = parse_command_line() config = adios.adiosConfig (args.project + '_skel.xml') params = skelconf.skelConfig (args.project + '_params.xml') create_sources (params, config, args.project)
def main(argv=None): skel_settings.create_settings_dir_if_needed() args = parse_command_line() config = adios.adiosConfig (args.project + '_skel.xml') params = skelconf.skelConfig (args.project + '_params.xml') #generate_makefiles_c (params) generate_submit_scripts_from_xml (params)
def generate_param_file_with_args(parent_parser): args = pparse_command_line(parent_parser) try: config = adios.adiosConfig(args.project + "_skel.xml") except (IOError): print "XXError reading " + args.project + "_skel.xml. Try running skel xml " + args.project + " first." return 1 outfilename = args.project + "_params.xml" # Only proceed if outfilename does not already exist, or if -f was used if os.path.exists(outfilename) and not args.force: print "%s exists, aborting. Delete the file or use -f to overwrite." % outfilename return 999 try: config = adios.adiosConfig(args.project + "_skel.xml") except (IOError): print "Error reading " + args.project + "_skel.xml. Try running skel xml " + args.project + " first." return 1 generate_param_file(args.project, outfilename, config, args.group, args.bpls)
def main(argv=None): skel_settings.create_settings_dir_if_needed() args = parse_command_line() config = adios.adiosConfig (args.project + '_skel.xml') params = skelconf.skelConfig (args.project + '_params.xml') lang = config.get_host_language () if 'c' == lang or 'C' == lang: print 'generating C flavored Makefile' generate_makefiles_c (params) else: print 'generating fortran flavored Makefile' generate_makefiles_fortran (params)
def main(argv=None): skel_settings.create_settings_dir_if_needed() args = parse_command_line() config = adios.adiosConfig(args.project + '_skel.xml') params = skelconf.skelConfig(args.project + '_params.xml') lang = config.get_host_language() if 'c' == lang or 'C' == lang: print('generating C flavored Makefile') generate_makefiles_c(params) else: print('generating fortran flavored Makefile') generate_makefiles_fortran(params)
def create_sources_with_args(parent_parser): args = pparse_command_line(parent_parser) try: config = adios.adiosConfig(args.project + '_skel.xml') except (IOError): print "XXError reading " + args.project + "_skel.xml. Try running skel xml " + args.project + " first." return 1 if args.yamlfile is not None: create_source_from_yaml(args, config) else: if args.noxml: print "NOXML generation only supported with yaml input. Generating XML based code." create_source_from_xml(args, config)
def create_sources_with_args (parent_parser): args = pparse_command_line (parent_parser) try: config = adios.adiosConfig (args.project + '_skel.xml') except (IOError): print "XXError reading " + args.project + "_skel.xml. Try running skel xml " + args.project + " first." return 1 if args.yamlfile is not None: create_source_from_yaml(args, config) else: if args.noxml: print "NOXML generation only supported with yaml input. Generating XML based code." create_source_from_xml (args, config)
def main(argv=None): skel_settings.create_settings_dir_if_needed() args = parse_command_line() config = adios.adiosConfig(args.project + '_skel.xml') # Determine outfile name outfilename = args.project + '_params.xml.default' # Only proceed if outfilename does not already exist. if os.path.exists(outfilename): print("%s exists, aborting. Delete the file or use '-f' to overwrite.") return 999 generate_param_file(args.project, outfilename, config, args.group)
def main(argv=None): skel_settings.create_settings_dir_if_needed() args = parse_command_line() config = adios.adiosConfig (args.project + '_skel.xml') # Determine outfile name outfilename = args.project + '_params.xml.default' # Only proceed if outfilename does not already exist. if os.path.exists (outfilename): print "%s exists, aborting. Delete the file or use '-f' to overwrite." return 999 generate_param_file (args.project, outfilename, config, args.group)
def generate_makefiles_with_args (parent_parser): args = pparse_command_line (parent_parser) try: config = adios.adiosConfig (args.project + '_skel.xml') except (IOError): print "XXError reading " + args.project + "_skel.xml. Try running skel xml " + args.project + " first." return 1 if args.yamlfile: generate_makefile_from_yaml (args) else: try: params = skelconf.skelConfig (args.project + '_params.xml') except (IOError): print "Error reading " + args.project + "_params.xml. Try running skel params " + args.project + " first," print "then check that " + args.project + "_params.xml exists." return generate_makefiles (params, config)
def generate_submit_scripts_with_args(parent_parser): args = pparse_command_line(parent_parser) try: config = adios.adiosConfig(args.project + '_skel.xml') except (IOError): print("XXError reading " + args.project + "_skel.xml. Try running skel xml " + args.project + " first.") return 1 if args.yamlfile is not None: generate_submit_scripts_from_yaml(args) else: try: params = skelconf.skelConfig(args.project + '_params.xml') except (IOError): print("Error reading " + args.project + "_params.xml. Try running skel params " + args.project + " first,") print("then check that " + args.project + "_params.xml exists.") return 1 generate_submit_scripts_from_xml(params)