From 34921a8580dbbc79cfcedfdb7093f441324852f1 Mon Sep 17 00:00:00 2001 From: AndersJensen-NOAA Date: Fri, 9 Jan 2026 00:34:37 +0000 Subject: [PATCH 1/3] initial connection to TEMPO microphysics --- src/core_atmosphere/Externals.cfg | 7 +++++++ src/core_atmosphere/physics/Makefile | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/core_atmosphere/Externals.cfg b/src/core_atmosphere/Externals.cfg index 84dc47d1d8..1dd261ca47 100644 --- a/src/core_atmosphere/Externals.cfg +++ b/src/core_atmosphere/Externals.cfg @@ -12,5 +12,12 @@ repo_url = https://github.com/NOAA-GSL/UGWP.git tag = MPAS_20241223 required = True +[GSL_MP] +local_path = ./physics_noaa/TEMPO +protocol = git +repo_url = https://github.com/AndersJensen-NOAA/TEMPO.git +tag = v3.0.0_b +required = True + [externals_description] schema_version = 1.0.0 diff --git a/src/core_atmosphere/physics/Makefile b/src/core_atmosphere/physics/Makefile index 75eec25931..18352d7603 100644 --- a/src/core_atmosphere/physics/Makefile +++ b/src/core_atmosphere/physics/Makefile @@ -6,7 +6,7 @@ endif all: ./../tools/manage_externals/checkout_externals --externals ./../Externals.cfg - $(MAKE) lookup_tables core_physics_init core_physics_mmm core_UGWP core_physics_wrf core_physics_noahmp core_physics + $(MAKE) lookup_tables core_physics_init core_physics_mmm core_UGWP core_physics_wrf core_physics_noahmp core_physics core_TEMPO dummy: echo "****** compiling physics ******" @@ -63,6 +63,9 @@ core_physics_mmm: core_physics_init core_UGWP: core_physics_init (cd physics_noaa/UGWP; $(MAKE) all) +core_TEMPO: core_physics_init + (cd physics_noaa/TEMPO; $(MAKE) -f Makefile.mpas) + core_physics_wrf: core_physics_init core_physics_mmm core_UGWP (cd physics_wrf; $(MAKE) all COREDEF="$(COREDEF)") @@ -254,6 +257,7 @@ clean: ( cd physics_noahmp/src; $(MAKE) clean ) ( cd physics_noahmp/utility; $(MAKE) clean ) ( if [ -d physics_noaa/UGWP ]; then cd physics_noaa/UGWP; $(MAKE) clean; fi ) + ( if [ -d physics_noaa/TEMPO ]; then cd physics_noaa/TEMPO; $(MAKE) -f Makefile.mpas clean; fi ) @# Certain systems with intel compilers generate *.i files @# This removes them during the clean process $(RM) *.i From 894e86abe340829b06a0c4625db5a7e3a355cd23 Mon Sep 17 00:00:00 2001 From: AndersJensen-NOAA Date: Fri, 9 Jan 2026 00:52:57 +0000 Subject: [PATCH 2/3] update tempo tag in externals --- src/core_atmosphere/Externals.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_atmosphere/Externals.cfg b/src/core_atmosphere/Externals.cfg index 1dd261ca47..748da8e229 100644 --- a/src/core_atmosphere/Externals.cfg +++ b/src/core_atmosphere/Externals.cfg @@ -16,7 +16,7 @@ required = True local_path = ./physics_noaa/TEMPO protocol = git repo_url = https://github.com/AndersJensen-NOAA/TEMPO.git -tag = v3.0.0_b +tag = v3.0.0_c required = True [externals_description] From 97f8af743f770003dfd24e8533ce3473344ed1be Mon Sep 17 00:00:00 2001 From: AndersJensen-NOAA Date: Fri, 16 Jan 2026 14:25:00 +0000 Subject: [PATCH 3/3] - updates TEMPO tag - adds TEMPO registry - adds include flags and module use statements to connect tempo to microphysics driver --- src/core_atmosphere/Externals.cfg | 4 ++-- src/core_atmosphere/physics/Makefile | 6 +++--- src/core_atmosphere/physics/Registry_tempo.xml | 17 +++++++++++++++++ .../physics/mpas_atmphys_driver_microphysics.F | 3 +++ 4 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 src/core_atmosphere/physics/Registry_tempo.xml diff --git a/src/core_atmosphere/Externals.cfg b/src/core_atmosphere/Externals.cfg index 748da8e229..b3f1f3db26 100644 --- a/src/core_atmosphere/Externals.cfg +++ b/src/core_atmosphere/Externals.cfg @@ -12,11 +12,11 @@ repo_url = https://github.com/NOAA-GSL/UGWP.git tag = MPAS_20241223 required = True -[GSL_MP] +[TEMPO_MP] local_path = ./physics_noaa/TEMPO protocol = git repo_url = https://github.com/AndersJensen-NOAA/TEMPO.git -tag = v3.0.0_c +tag = v3.0.0_g required = True [externals_description] diff --git a/src/core_atmosphere/physics/Makefile b/src/core_atmosphere/physics/Makefile index 18352d7603..f5ec4c3175 100644 --- a/src/core_atmosphere/physics/Makefile +++ b/src/core_atmosphere/physics/Makefile @@ -6,7 +6,7 @@ endif all: ./../tools/manage_externals/checkout_externals --externals ./../Externals.cfg - $(MAKE) lookup_tables core_physics_init core_physics_mmm core_UGWP core_physics_wrf core_physics_noahmp core_physics core_TEMPO + $(MAKE) lookup_tables core_physics_init core_physics_mmm core_UGWP core_TEMPO core_physics_wrf core_physics_noahmp core_physics dummy: echo "****** compiling physics ******" @@ -266,7 +266,7 @@ clean: $(RM) $@ $*.mod ifeq "$(GEN_F90)" "true" $(CPP) $(CPPFLAGS) $(COREDEF) $(HYDROSTATIC) $(CPPINCLUDES) $< > $*.f90 - $(FC) $(FFLAGS) -c $*.f90 $(FCINCLUDES) -I./physics_mmm -I./physics_wrf -I./physics_noahmp -I./physics_noahmp/utility -I./physics_noahmp/drivers/mpas -I./physics_noahmp/src -I.. -I../../framework -I../../external/esmf_time_f90 + $(FC) $(FFLAGS) -c $*.f90 $(FCINCLUDES) -I./physics_mmm -I./physics_wrf -I./physics_noaa/TEMPO -I./physics_noahmp -I./physics_noahmp/utility -I./physics_noahmp/drivers/mpas -I./physics_noahmp/src -I.. -I../../framework -I../../external/esmf_time_f90 else - $(FC) $(CPPFLAGS) $(COREDEF) $(HYDROSATIC) $(FFLAGS) -c $*.F $(CPPINCLUDES) $(FCINCLUDES) -I./physics_mmm -I./physics_wrf -I./physics_noahmp -I./physics_noahmp/utility -I./physics_noahmp/drivers/mpas -I./physics_noahmp/src -I./physics_noaa/UGWP -I.. -I../../framework -I../../external/esmf_time_f90 + $(FC) $(CPPFLAGS) $(COREDEF) $(HYDROSATIC) $(FFLAGS) -c $*.F $(CPPINCLUDES) $(FCINCLUDES) -I./physics_mmm -I./physics_wrf -I./physics_noaa/TEMPO -I./physics_noahmp -I./physics_noahmp/utility -I./physics_noahmp/drivers/mpas -I./physics_noahmp/src -I./physics_noaa/UGWP -I.. -I../../framework -I../../external/esmf_time_f90 endif diff --git a/src/core_atmosphere/physics/Registry_tempo.xml b/src/core_atmosphere/physics/Registry_tempo.xml new file mode 100644 index 0000000000..604c3a57b6 --- /dev/null +++ b/src/core_atmosphere/physics/Registry_tempo.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + diff --git a/src/core_atmosphere/physics/mpas_atmphys_driver_microphysics.F b/src/core_atmosphere/physics/mpas_atmphys_driver_microphysics.F index bbc78b8ed2..c16c44b2ce 100644 --- a/src/core_atmosphere/physics/mpas_atmphys_driver_microphysics.F +++ b/src/core_atmosphere/physics/mpas_atmphys_driver_microphysics.F @@ -22,6 +22,9 @@ module mpas_atmphys_driver_microphysics use module_mp_wsm6,only: wsm6 use mp_wsm6,only: mp_wsm6_init,refl10cm_wsm6 + use module_mp_tempo_cfgs,only: ty_tempo_cfgs + use module_mp_tempo_driver,only: tempo_init, tempo_driver, & + ty_tempo_driver_diags, tempo_aerosol_surface_emissions implicit none private