def step3(sFilename_pest_configuration_in, sFilename_model_configuration_in): aParameter_pest = pypest_read_pest_configuration_file( sFilename_pest_configuration_in) aParameter_pest[ 'sFilename_pest_configuration'] = sFilename_pest_configuration_in oPest = pypest(aParameter_pest) aParameter_model = pypest_read_model_configuration_file( sFilename_model_configuration_in) aParameter_model[ 'sFilename_model_configuration'] = sFilename_model_configuration_in oMaces = maces(aParameter_model) run_step3(oPest, oMaces) return
def step0(sFilename_pest_configuration_in, sFilename_model_configuration_in): aParameter_pest = pypest_read_pest_configuration_file( sFilename_pest_configuration) aParameter_pest[ 'sFilename_pest_configuration'] = sFilename_pest_configuration oPest = pypest(aParameter_pest) aParameter_model = pypest_read_model_configuration_file( sFilename_model_configuration) aParameter_model[ 'sFilename_model_configuration'] = sFilename_model_configuration oswat = pyswat(aParameter_model) run_step0(oPest, oswat) return
pass print('Finished changing namelist parameter\n') #generate the job file if iFlag_calibration ==1: pass else: maces_prepare_job_file(oModel_in) print('Finished setting up the maces case') return if __name__ == '__main__': iFlag_calibration =1 if iFlag_calibration ==1: sFilename_model_configuration = '/qfs/people/liao313/workspace/python/pypest/pypest/pypest/models/maces/config/model_calibration.xml' else: sFilename_model_configuration = '/qfs/people/liao313/workspace/python/pypest/pypest/pypest/models/maces/config/model_simulation.xml' aParameter_model = pypest_read_model_configuration_file(sFilename_model_configuration) oMaces = maces(aParameter_model) maces_setup_case(oMaces)