diff --git a/props/model-ompp.4.build.targets b/props/model-ompp.4.build.targets index 6ecc51815..6303a42e9 100644 --- a/props/model-ompp.4.build.targets +++ b/props/model-ompp.4.build.targets @@ -298,18 +298,7 @@ StartOmppUI --> - - run.Debug.template.txt - run.Debug.template.txt - $(OM_CFG_DEFAULT_RUN_TMPL) - - $(PUBLISH_DIR)/$(MODEL_NAME).oms_url.tickle $([System.IO.Path]::GetFullPath('$(OM_ROOT)')) @@ -325,11 +314,11 @@ > diff --git a/props/start-ui-at-build.bat b/props/start-ui-at-build.bat index dff1f6dba..8910d0a94 100644 --- a/props/start-ui-at-build.bat +++ b/props/start-ui-at-build.bat @@ -57,6 +57,26 @@ if not defined model_exe_name ( ) ) ) +if not defined model_exe_name ( + if exist "%MODEL_NAME%_mpi.exe" ( + + set model_exe_name=%MODEL_NAME%_mpi.exe + + if not defined OM_CFG_DEFAULT_RUN_TMPL ( + set OM_CFG_DEFAULT_RUN_TMPL=mpi.ModelRun.template.txt + ) + ) +) +if not defined model_exe_name ( + if exist "%MODEL_NAME%D_mpi.exe" ( + + set model_exe_name=%MODEL_NAME%D_mpi.exe + + if not defined OM_CFG_DEFAULT_RUN_TMPL ( + set OM_CFG_DEFAULT_RUN_TMPL=mpi.ModelDebug.template.txt + ) + ) +) if not defined model_exe_name ( @echo ERROR: %MODEL_NAME% exe not found EXIT 1