From db23fd1af3d3ea990563b3d9d3cde27226a8f15d Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Fri, 5 Apr 2024 18:43:41 -0400 Subject: [PATCH 1/8] move gfs and gefs files under their respective directories --- parm/{ => gefs}/postcntrl_gefs.xml | 0 parm/{ => gefs}/postcntrl_gefs_aerosol.xml | 0 parm/{ => gefs}/postcntrl_gefs_aerosol_f00.xml | 0 parm/{ => gefs}/postcntrl_gefs_chem.xml | 0 parm/{ => gefs}/postcntrl_gefs_f00.xml | 0 parm/{ => gefs}/postcntrl_gefs_wafs.xml | 0 parm/{ => gefs}/postxconfig-NT-GEFS-F00-aerosol.txt | 0 parm/{ => gefs}/postxconfig-NT-GEFS-F00.txt | 0 parm/{ => gefs}/postxconfig-NT-GEFS-WAFS.txt | 0 parm/{ => gefs}/postxconfig-NT-GEFS-aerosol.txt | 0 parm/{ => gefs}/postxconfig-NT-GEFS.txt | 0 parm/{ => gefs}/postxconfig-NT-gefs-chem.txt | 0 parm/{ => gfs}/post_tag_gfs128 | 0 parm/{ => gfs}/post_tag_gfs65 | 0 parm/{ => gfs}/postcntrl_gfs.xml | 0 parm/{ => gfs}/postcntrl_gfs_anl.xml | 0 parm/{ => gfs}/postcntrl_gfs_f00.xml | 0 parm/{ => gfs}/postcntrl_gfs_f00_two.xml | 0 parm/{ => gfs}/postcntrl_gfs_flux.xml | 0 parm/{ => gfs}/postcntrl_gfs_flux_f00.xml | 0 parm/{ => gfs}/postcntrl_gfs_goes.xml | 0 parm/{ => gfs}/postcntrl_gfs_goes.xml-new | 0 parm/{ => gfs}/postcntrl_gfs_two.xml | 0 parm/{ => gfs}/postcntrl_gfs_wafs.xml | 0 parm/{ => gfs}/postcntrl_gfs_wafs_anl.xml | 0 parm/{ => gfs}/postcntrl_gfs_wafs_ext.xml | 0 parm/{ => gfs}/postxconfig-NT-GFS-F00.txt | 0 parm/{ => gfs}/postxconfig-NT-GFS-FLUX-F00.txt | 0 parm/{ => gfs}/postxconfig-NT-GFS-FLUX.txt | 0 parm/{ => gfs}/postxconfig-NT-GFS-GOES.txt | 0 parm/{ => gfs}/postxconfig-NT-GFS-TWO.txt | 0 parm/{ => gfs}/postxconfig-NT-GFS-WAFS-ANL.txt | 0 parm/{ => gfs}/postxconfig-NT-GFS-WAFS-EXT.txt | 0 parm/{ => gfs}/postxconfig-NT-GFS-WAFS.txt | 0 parm/{ => gfs}/postxconfig-NT-GFS.txt | 0 .../postxconfig-NT-gfs-anl.txt} | 0 .../postxconfig-NT-gfs-f00-two.txt} | 0 37 files changed, 0 insertions(+), 0 deletions(-) rename parm/{ => gefs}/postcntrl_gefs.xml (100%) rename parm/{ => gefs}/postcntrl_gefs_aerosol.xml (100%) mode change 100755 => 100644 rename parm/{ => gefs}/postcntrl_gefs_aerosol_f00.xml (100%) rename parm/{ => gefs}/postcntrl_gefs_chem.xml (100%) mode change 100755 => 100644 rename parm/{ => gefs}/postcntrl_gefs_f00.xml (100%) rename parm/{ => gefs}/postcntrl_gefs_wafs.xml (100%) mode change 100755 => 100644 rename parm/{ => gefs}/postxconfig-NT-GEFS-F00-aerosol.txt (100%) rename parm/{ => gefs}/postxconfig-NT-GEFS-F00.txt (100%) rename parm/{ => gefs}/postxconfig-NT-GEFS-WAFS.txt (100%) rename parm/{ => gefs}/postxconfig-NT-GEFS-aerosol.txt (100%) rename parm/{ => gefs}/postxconfig-NT-GEFS.txt (100%) rename parm/{ => gefs}/postxconfig-NT-gefs-chem.txt (100%) rename parm/{ => gfs}/post_tag_gfs128 (100%) rename parm/{ => gfs}/post_tag_gfs65 (100%) rename parm/{ => gfs}/postcntrl_gfs.xml (100%) mode change 100755 => 100644 rename parm/{ => gfs}/postcntrl_gfs_anl.xml (100%) mode change 100755 => 100644 rename parm/{ => gfs}/postcntrl_gfs_f00.xml (100%) mode change 100755 => 100644 rename parm/{ => gfs}/postcntrl_gfs_f00_two.xml (100%) mode change 100755 => 100644 rename parm/{ => gfs}/postcntrl_gfs_flux.xml (100%) mode change 100755 => 100644 rename parm/{ => gfs}/postcntrl_gfs_flux_f00.xml (100%) mode change 100755 => 100644 rename parm/{ => gfs}/postcntrl_gfs_goes.xml (100%) mode change 100755 => 100644 rename parm/{ => gfs}/postcntrl_gfs_goes.xml-new (100%) mode change 100755 => 100644 rename parm/{ => gfs}/postcntrl_gfs_two.xml (100%) mode change 100755 => 100644 rename parm/{ => gfs}/postcntrl_gfs_wafs.xml (100%) mode change 100755 => 100644 rename parm/{ => gfs}/postcntrl_gfs_wafs_anl.xml (100%) mode change 100755 => 100644 rename parm/{ => gfs}/postcntrl_gfs_wafs_ext.xml (100%) mode change 100755 => 100644 rename parm/{ => gfs}/postxconfig-NT-GFS-F00.txt (100%) rename parm/{ => gfs}/postxconfig-NT-GFS-FLUX-F00.txt (100%) rename parm/{ => gfs}/postxconfig-NT-GFS-FLUX.txt (100%) rename parm/{ => gfs}/postxconfig-NT-GFS-GOES.txt (100%) rename parm/{ => gfs}/postxconfig-NT-GFS-TWO.txt (100%) rename parm/{ => gfs}/postxconfig-NT-GFS-WAFS-ANL.txt (100%) rename parm/{ => gfs}/postxconfig-NT-GFS-WAFS-EXT.txt (100%) rename parm/{ => gfs}/postxconfig-NT-GFS-WAFS.txt (100%) rename parm/{ => gfs}/postxconfig-NT-GFS.txt (100%) rename parm/{postxconfig-NT-GFS-ANL.txt => gfs/postxconfig-NT-gfs-anl.txt} (100%) rename parm/{postxconfig-NT-GFS-F00-TWO.txt => gfs/postxconfig-NT-gfs-f00-two.txt} (100%) diff --git a/parm/postcntrl_gefs.xml b/parm/gefs/postcntrl_gefs.xml similarity index 100% rename from parm/postcntrl_gefs.xml rename to parm/gefs/postcntrl_gefs.xml diff --git a/parm/postcntrl_gefs_aerosol.xml b/parm/gefs/postcntrl_gefs_aerosol.xml old mode 100755 new mode 100644 similarity index 100% rename from parm/postcntrl_gefs_aerosol.xml rename to parm/gefs/postcntrl_gefs_aerosol.xml diff --git a/parm/postcntrl_gefs_aerosol_f00.xml b/parm/gefs/postcntrl_gefs_aerosol_f00.xml similarity index 100% rename from parm/postcntrl_gefs_aerosol_f00.xml rename to parm/gefs/postcntrl_gefs_aerosol_f00.xml diff --git a/parm/postcntrl_gefs_chem.xml b/parm/gefs/postcntrl_gefs_chem.xml old mode 100755 new mode 100644 similarity index 100% rename from parm/postcntrl_gefs_chem.xml rename to parm/gefs/postcntrl_gefs_chem.xml diff --git a/parm/postcntrl_gefs_f00.xml b/parm/gefs/postcntrl_gefs_f00.xml similarity index 100% rename from parm/postcntrl_gefs_f00.xml rename to parm/gefs/postcntrl_gefs_f00.xml diff --git a/parm/postcntrl_gefs_wafs.xml b/parm/gefs/postcntrl_gefs_wafs.xml old mode 100755 new mode 100644 similarity index 100% rename from parm/postcntrl_gefs_wafs.xml rename to parm/gefs/postcntrl_gefs_wafs.xml diff --git a/parm/postxconfig-NT-GEFS-F00-aerosol.txt b/parm/gefs/postxconfig-NT-GEFS-F00-aerosol.txt similarity index 100% rename from parm/postxconfig-NT-GEFS-F00-aerosol.txt rename to parm/gefs/postxconfig-NT-GEFS-F00-aerosol.txt diff --git a/parm/postxconfig-NT-GEFS-F00.txt b/parm/gefs/postxconfig-NT-GEFS-F00.txt similarity index 100% rename from parm/postxconfig-NT-GEFS-F00.txt rename to parm/gefs/postxconfig-NT-GEFS-F00.txt diff --git a/parm/postxconfig-NT-GEFS-WAFS.txt b/parm/gefs/postxconfig-NT-GEFS-WAFS.txt similarity index 100% rename from parm/postxconfig-NT-GEFS-WAFS.txt rename to parm/gefs/postxconfig-NT-GEFS-WAFS.txt diff --git a/parm/postxconfig-NT-GEFS-aerosol.txt b/parm/gefs/postxconfig-NT-GEFS-aerosol.txt similarity index 100% rename from parm/postxconfig-NT-GEFS-aerosol.txt rename to parm/gefs/postxconfig-NT-GEFS-aerosol.txt diff --git a/parm/postxconfig-NT-GEFS.txt b/parm/gefs/postxconfig-NT-GEFS.txt similarity index 100% rename from parm/postxconfig-NT-GEFS.txt rename to parm/gefs/postxconfig-NT-GEFS.txt diff --git a/parm/postxconfig-NT-gefs-chem.txt b/parm/gefs/postxconfig-NT-gefs-chem.txt similarity index 100% rename from parm/postxconfig-NT-gefs-chem.txt rename to parm/gefs/postxconfig-NT-gefs-chem.txt diff --git a/parm/post_tag_gfs128 b/parm/gfs/post_tag_gfs128 similarity index 100% rename from parm/post_tag_gfs128 rename to parm/gfs/post_tag_gfs128 diff --git a/parm/post_tag_gfs65 b/parm/gfs/post_tag_gfs65 similarity index 100% rename from parm/post_tag_gfs65 rename to parm/gfs/post_tag_gfs65 diff --git a/parm/postcntrl_gfs.xml b/parm/gfs/postcntrl_gfs.xml old mode 100755 new mode 100644 similarity index 100% rename from parm/postcntrl_gfs.xml rename to parm/gfs/postcntrl_gfs.xml diff --git a/parm/postcntrl_gfs_anl.xml b/parm/gfs/postcntrl_gfs_anl.xml old mode 100755 new mode 100644 similarity index 100% rename from parm/postcntrl_gfs_anl.xml rename to parm/gfs/postcntrl_gfs_anl.xml diff --git a/parm/postcntrl_gfs_f00.xml b/parm/gfs/postcntrl_gfs_f00.xml old mode 100755 new mode 100644 similarity index 100% rename from parm/postcntrl_gfs_f00.xml rename to parm/gfs/postcntrl_gfs_f00.xml diff --git a/parm/postcntrl_gfs_f00_two.xml b/parm/gfs/postcntrl_gfs_f00_two.xml old mode 100755 new mode 100644 similarity index 100% rename from parm/postcntrl_gfs_f00_two.xml rename to parm/gfs/postcntrl_gfs_f00_two.xml diff --git a/parm/postcntrl_gfs_flux.xml b/parm/gfs/postcntrl_gfs_flux.xml old mode 100755 new mode 100644 similarity index 100% rename from parm/postcntrl_gfs_flux.xml rename to parm/gfs/postcntrl_gfs_flux.xml diff --git a/parm/postcntrl_gfs_flux_f00.xml b/parm/gfs/postcntrl_gfs_flux_f00.xml old mode 100755 new mode 100644 similarity index 100% rename from parm/postcntrl_gfs_flux_f00.xml rename to parm/gfs/postcntrl_gfs_flux_f00.xml diff --git a/parm/postcntrl_gfs_goes.xml b/parm/gfs/postcntrl_gfs_goes.xml old mode 100755 new mode 100644 similarity index 100% rename from parm/postcntrl_gfs_goes.xml rename to parm/gfs/postcntrl_gfs_goes.xml diff --git a/parm/postcntrl_gfs_goes.xml-new b/parm/gfs/postcntrl_gfs_goes.xml-new old mode 100755 new mode 100644 similarity index 100% rename from parm/postcntrl_gfs_goes.xml-new rename to parm/gfs/postcntrl_gfs_goes.xml-new diff --git a/parm/postcntrl_gfs_two.xml b/parm/gfs/postcntrl_gfs_two.xml old mode 100755 new mode 100644 similarity index 100% rename from parm/postcntrl_gfs_two.xml rename to parm/gfs/postcntrl_gfs_two.xml diff --git a/parm/postcntrl_gfs_wafs.xml b/parm/gfs/postcntrl_gfs_wafs.xml old mode 100755 new mode 100644 similarity index 100% rename from parm/postcntrl_gfs_wafs.xml rename to parm/gfs/postcntrl_gfs_wafs.xml diff --git a/parm/postcntrl_gfs_wafs_anl.xml b/parm/gfs/postcntrl_gfs_wafs_anl.xml old mode 100755 new mode 100644 similarity index 100% rename from parm/postcntrl_gfs_wafs_anl.xml rename to parm/gfs/postcntrl_gfs_wafs_anl.xml diff --git a/parm/postcntrl_gfs_wafs_ext.xml b/parm/gfs/postcntrl_gfs_wafs_ext.xml old mode 100755 new mode 100644 similarity index 100% rename from parm/postcntrl_gfs_wafs_ext.xml rename to parm/gfs/postcntrl_gfs_wafs_ext.xml diff --git a/parm/postxconfig-NT-GFS-F00.txt b/parm/gfs/postxconfig-NT-GFS-F00.txt similarity index 100% rename from parm/postxconfig-NT-GFS-F00.txt rename to parm/gfs/postxconfig-NT-GFS-F00.txt diff --git a/parm/postxconfig-NT-GFS-FLUX-F00.txt b/parm/gfs/postxconfig-NT-GFS-FLUX-F00.txt similarity index 100% rename from parm/postxconfig-NT-GFS-FLUX-F00.txt rename to parm/gfs/postxconfig-NT-GFS-FLUX-F00.txt diff --git a/parm/postxconfig-NT-GFS-FLUX.txt b/parm/gfs/postxconfig-NT-GFS-FLUX.txt similarity index 100% rename from parm/postxconfig-NT-GFS-FLUX.txt rename to parm/gfs/postxconfig-NT-GFS-FLUX.txt diff --git a/parm/postxconfig-NT-GFS-GOES.txt b/parm/gfs/postxconfig-NT-GFS-GOES.txt similarity index 100% rename from parm/postxconfig-NT-GFS-GOES.txt rename to parm/gfs/postxconfig-NT-GFS-GOES.txt diff --git a/parm/postxconfig-NT-GFS-TWO.txt b/parm/gfs/postxconfig-NT-GFS-TWO.txt similarity index 100% rename from parm/postxconfig-NT-GFS-TWO.txt rename to parm/gfs/postxconfig-NT-GFS-TWO.txt diff --git a/parm/postxconfig-NT-GFS-WAFS-ANL.txt b/parm/gfs/postxconfig-NT-GFS-WAFS-ANL.txt similarity index 100% rename from parm/postxconfig-NT-GFS-WAFS-ANL.txt rename to parm/gfs/postxconfig-NT-GFS-WAFS-ANL.txt diff --git a/parm/postxconfig-NT-GFS-WAFS-EXT.txt b/parm/gfs/postxconfig-NT-GFS-WAFS-EXT.txt similarity index 100% rename from parm/postxconfig-NT-GFS-WAFS-EXT.txt rename to parm/gfs/postxconfig-NT-GFS-WAFS-EXT.txt diff --git a/parm/postxconfig-NT-GFS-WAFS.txt b/parm/gfs/postxconfig-NT-GFS-WAFS.txt similarity index 100% rename from parm/postxconfig-NT-GFS-WAFS.txt rename to parm/gfs/postxconfig-NT-GFS-WAFS.txt diff --git a/parm/postxconfig-NT-GFS.txt b/parm/gfs/postxconfig-NT-GFS.txt similarity index 100% rename from parm/postxconfig-NT-GFS.txt rename to parm/gfs/postxconfig-NT-GFS.txt diff --git a/parm/postxconfig-NT-GFS-ANL.txt b/parm/gfs/postxconfig-NT-gfs-anl.txt similarity index 100% rename from parm/postxconfig-NT-GFS-ANL.txt rename to parm/gfs/postxconfig-NT-gfs-anl.txt diff --git a/parm/postxconfig-NT-GFS-F00-TWO.txt b/parm/gfs/postxconfig-NT-gfs-f00-two.txt similarity index 100% rename from parm/postxconfig-NT-GFS-F00-TWO.txt rename to parm/gfs/postxconfig-NT-gfs-f00-two.txt From 625e852696c9741ae242a585cbcdf08fb1d8ef0b Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Sat, 6 Apr 2024 14:38:35 -0400 Subject: [PATCH 2/8] make all global files lowercase --- ...config-NT-GEFS-aerosol.txt => postxconfig-NT-gefs-aerosol.txt} | 0 ...T-GEFS-F00-aerosol.txt => postxconfig-NT-gefs-f00-aerosol.txt} | 0 .../{postxconfig-NT-GEFS-F00.txt => postxconfig-NT-gefs-f00.txt} | 0 ...{postxconfig-NT-GEFS-WAFS.txt => postxconfig-NT-gefs-wafs.txt} | 0 parm/gefs/{postxconfig-NT-GEFS.txt => postxconfig-NT-gefs.txt} | 0 .../{postxconfig-NT-GFS-F00.txt => postxconfig-NT-gfs-f00.txt} | 0 ...config-NT-GFS-FLUX-F00.txt => postxconfig-NT-gfs-flux-f00.txt} | 0 .../{postxconfig-NT-GFS-FLUX.txt => postxconfig-NT-gfs-flux.txt} | 0 .../{postxconfig-NT-GFS-GOES.txt => postxconfig-NT-gfs-goes.txt} | 0 .../{postxconfig-NT-GFS-TWO.txt => postxconfig-NT-gfs-two.txt} | 0 ...config-NT-GFS-WAFS-ANL.txt => postxconfig-NT-gfs-wafs-anl.txt} | 0 ...config-NT-GFS-WAFS-EXT.txt => postxconfig-NT-gfs-wafs-ext.txt} | 0 .../{postxconfig-NT-GFS-WAFS.txt => postxconfig-NT-gfs-wafs.txt} | 0 parm/gfs/{postxconfig-NT-GFS.txt => postxconfig-NT-gfs.txt} | 0 14 files changed, 0 insertions(+), 0 deletions(-) rename parm/gefs/{postxconfig-NT-GEFS-aerosol.txt => postxconfig-NT-gefs-aerosol.txt} (100%) rename parm/gefs/{postxconfig-NT-GEFS-F00-aerosol.txt => postxconfig-NT-gefs-f00-aerosol.txt} (100%) rename parm/gefs/{postxconfig-NT-GEFS-F00.txt => postxconfig-NT-gefs-f00.txt} (100%) rename parm/gefs/{postxconfig-NT-GEFS-WAFS.txt => postxconfig-NT-gefs-wafs.txt} (100%) rename parm/gefs/{postxconfig-NT-GEFS.txt => postxconfig-NT-gefs.txt} (100%) rename parm/gfs/{postxconfig-NT-GFS-F00.txt => postxconfig-NT-gfs-f00.txt} (100%) rename parm/gfs/{postxconfig-NT-GFS-FLUX-F00.txt => postxconfig-NT-gfs-flux-f00.txt} (100%) rename parm/gfs/{postxconfig-NT-GFS-FLUX.txt => postxconfig-NT-gfs-flux.txt} (100%) rename parm/gfs/{postxconfig-NT-GFS-GOES.txt => postxconfig-NT-gfs-goes.txt} (100%) rename parm/gfs/{postxconfig-NT-GFS-TWO.txt => postxconfig-NT-gfs-two.txt} (100%) rename parm/gfs/{postxconfig-NT-GFS-WAFS-ANL.txt => postxconfig-NT-gfs-wafs-anl.txt} (100%) rename parm/gfs/{postxconfig-NT-GFS-WAFS-EXT.txt => postxconfig-NT-gfs-wafs-ext.txt} (100%) rename parm/gfs/{postxconfig-NT-GFS-WAFS.txt => postxconfig-NT-gfs-wafs.txt} (100%) rename parm/gfs/{postxconfig-NT-GFS.txt => postxconfig-NT-gfs.txt} (100%) diff --git a/parm/gefs/postxconfig-NT-GEFS-aerosol.txt b/parm/gefs/postxconfig-NT-gefs-aerosol.txt similarity index 100% rename from parm/gefs/postxconfig-NT-GEFS-aerosol.txt rename to parm/gefs/postxconfig-NT-gefs-aerosol.txt diff --git a/parm/gefs/postxconfig-NT-GEFS-F00-aerosol.txt b/parm/gefs/postxconfig-NT-gefs-f00-aerosol.txt similarity index 100% rename from parm/gefs/postxconfig-NT-GEFS-F00-aerosol.txt rename to parm/gefs/postxconfig-NT-gefs-f00-aerosol.txt diff --git a/parm/gefs/postxconfig-NT-GEFS-F00.txt b/parm/gefs/postxconfig-NT-gefs-f00.txt similarity index 100% rename from parm/gefs/postxconfig-NT-GEFS-F00.txt rename to parm/gefs/postxconfig-NT-gefs-f00.txt diff --git a/parm/gefs/postxconfig-NT-GEFS-WAFS.txt b/parm/gefs/postxconfig-NT-gefs-wafs.txt similarity index 100% rename from parm/gefs/postxconfig-NT-GEFS-WAFS.txt rename to parm/gefs/postxconfig-NT-gefs-wafs.txt diff --git a/parm/gefs/postxconfig-NT-GEFS.txt b/parm/gefs/postxconfig-NT-gefs.txt similarity index 100% rename from parm/gefs/postxconfig-NT-GEFS.txt rename to parm/gefs/postxconfig-NT-gefs.txt diff --git a/parm/gfs/postxconfig-NT-GFS-F00.txt b/parm/gfs/postxconfig-NT-gfs-f00.txt similarity index 100% rename from parm/gfs/postxconfig-NT-GFS-F00.txt rename to parm/gfs/postxconfig-NT-gfs-f00.txt diff --git a/parm/gfs/postxconfig-NT-GFS-FLUX-F00.txt b/parm/gfs/postxconfig-NT-gfs-flux-f00.txt similarity index 100% rename from parm/gfs/postxconfig-NT-GFS-FLUX-F00.txt rename to parm/gfs/postxconfig-NT-gfs-flux-f00.txt diff --git a/parm/gfs/postxconfig-NT-GFS-FLUX.txt b/parm/gfs/postxconfig-NT-gfs-flux.txt similarity index 100% rename from parm/gfs/postxconfig-NT-GFS-FLUX.txt rename to parm/gfs/postxconfig-NT-gfs-flux.txt diff --git a/parm/gfs/postxconfig-NT-GFS-GOES.txt b/parm/gfs/postxconfig-NT-gfs-goes.txt similarity index 100% rename from parm/gfs/postxconfig-NT-GFS-GOES.txt rename to parm/gfs/postxconfig-NT-gfs-goes.txt diff --git a/parm/gfs/postxconfig-NT-GFS-TWO.txt b/parm/gfs/postxconfig-NT-gfs-two.txt similarity index 100% rename from parm/gfs/postxconfig-NT-GFS-TWO.txt rename to parm/gfs/postxconfig-NT-gfs-two.txt diff --git a/parm/gfs/postxconfig-NT-GFS-WAFS-ANL.txt b/parm/gfs/postxconfig-NT-gfs-wafs-anl.txt similarity index 100% rename from parm/gfs/postxconfig-NT-GFS-WAFS-ANL.txt rename to parm/gfs/postxconfig-NT-gfs-wafs-anl.txt diff --git a/parm/gfs/postxconfig-NT-GFS-WAFS-EXT.txt b/parm/gfs/postxconfig-NT-gfs-wafs-ext.txt similarity index 100% rename from parm/gfs/postxconfig-NT-GFS-WAFS-EXT.txt rename to parm/gfs/postxconfig-NT-gfs-wafs-ext.txt diff --git a/parm/gfs/postxconfig-NT-GFS-WAFS.txt b/parm/gfs/postxconfig-NT-gfs-wafs.txt similarity index 100% rename from parm/gfs/postxconfig-NT-GFS-WAFS.txt rename to parm/gfs/postxconfig-NT-gfs-wafs.txt diff --git a/parm/gfs/postxconfig-NT-GFS.txt b/parm/gfs/postxconfig-NT-gfs.txt similarity index 100% rename from parm/gfs/postxconfig-NT-GFS.txt rename to parm/gfs/postxconfig-NT-gfs.txt From 3d0dd186416e424e53120589d20f261732e747b2 Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Sat, 6 Apr 2024 14:42:29 -0400 Subject: [PATCH 3/8] move global_ files to gfs/ --- parm/{ => gfs}/global_1x1_paramlist_g2 | 0 parm/{ => gfs}/global_1x1_paramlist_g2.anl | 0 parm/{ => gfs}/global_1x1_paramlist_g2.f000 | 0 parm/{ => gfs}/global_1x1_paramlist_g2.f000_chem | 0 parm/{ => gfs}/global_1x1_paramlist_g2_chem | 0 parm/{ => gfs}/global_master-catchup_parmlist_g2 | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename parm/{ => gfs}/global_1x1_paramlist_g2 (100%) rename parm/{ => gfs}/global_1x1_paramlist_g2.anl (100%) rename parm/{ => gfs}/global_1x1_paramlist_g2.f000 (100%) rename parm/{ => gfs}/global_1x1_paramlist_g2.f000_chem (100%) rename parm/{ => gfs}/global_1x1_paramlist_g2_chem (100%) rename parm/{ => gfs}/global_master-catchup_parmlist_g2 (100%) diff --git a/parm/global_1x1_paramlist_g2 b/parm/gfs/global_1x1_paramlist_g2 similarity index 100% rename from parm/global_1x1_paramlist_g2 rename to parm/gfs/global_1x1_paramlist_g2 diff --git a/parm/global_1x1_paramlist_g2.anl b/parm/gfs/global_1x1_paramlist_g2.anl similarity index 100% rename from parm/global_1x1_paramlist_g2.anl rename to parm/gfs/global_1x1_paramlist_g2.anl diff --git a/parm/global_1x1_paramlist_g2.f000 b/parm/gfs/global_1x1_paramlist_g2.f000 similarity index 100% rename from parm/global_1x1_paramlist_g2.f000 rename to parm/gfs/global_1x1_paramlist_g2.f000 diff --git a/parm/global_1x1_paramlist_g2.f000_chem b/parm/gfs/global_1x1_paramlist_g2.f000_chem similarity index 100% rename from parm/global_1x1_paramlist_g2.f000_chem rename to parm/gfs/global_1x1_paramlist_g2.f000_chem diff --git a/parm/global_1x1_paramlist_g2_chem b/parm/gfs/global_1x1_paramlist_g2_chem similarity index 100% rename from parm/global_1x1_paramlist_g2_chem rename to parm/gfs/global_1x1_paramlist_g2_chem diff --git a/parm/global_master-catchup_parmlist_g2 b/parm/gfs/global_master-catchup_parmlist_g2 similarity index 100% rename from parm/global_master-catchup_parmlist_g2 rename to parm/gfs/global_master-catchup_parmlist_g2 From 6004c100e82c5b2aa2633b2b3d1d2f947f70668a Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Sat, 6 Apr 2024 14:47:28 -0400 Subject: [PATCH 4/8] create and move sfs files to sfs directory --- parm/{ => sfs}/postcntrl_sfs.xml | 0 parm/{postxconfig-NT-SFS.txt => sfs/postxconfig-NT-sfs.txt} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename parm/{ => sfs}/postcntrl_sfs.xml (100%) rename parm/{postxconfig-NT-SFS.txt => sfs/postxconfig-NT-sfs.txt} (100%) diff --git a/parm/postcntrl_sfs.xml b/parm/sfs/postcntrl_sfs.xml similarity index 100% rename from parm/postcntrl_sfs.xml rename to parm/sfs/postcntrl_sfs.xml diff --git a/parm/postxconfig-NT-SFS.txt b/parm/sfs/postxconfig-NT-sfs.txt similarity index 100% rename from parm/postxconfig-NT-SFS.txt rename to parm/sfs/postxconfig-NT-sfs.txt From 3fea13ebfd55c771cd5c98e403de480c2bc21e60 Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Sat, 6 Apr 2024 14:48:07 -0400 Subject: [PATCH 5/8] update CMakeLists.txt in parm/ to not install global files to share and update makefile for creating global postxconfig files in the global directories --- parm/CMakeLists.txt | 5 ----- parm/makefile | 52 ++++++++++++++++++++++----------------------- 2 files changed, 26 insertions(+), 31 deletions(-) diff --git a/parm/CMakeLists.txt b/parm/CMakeLists.txt index 64e8bd8fc..e69de29bb 100644 --- a/parm/CMakeLists.txt +++ b/parm/CMakeLists.txt @@ -1,5 +0,0 @@ -list(APPEND parmfiles - postxconfig-NT-GFS.txt - postxconfig-NT-GFS-F00.txt) - -install(FILES ${parmfiles} DESTINATION share) diff --git a/parm/makefile b/parm/makefile index 55a82d860..4b8479f31 100644 --- a/parm/makefile +++ b/parm/makefile @@ -18,60 +18,60 @@ RM=rm -f # Make sure all of the .txt files are in the ALL_TXT variable. ALL_TXT= \ - postxconfig-NT-GFS.txt \ - postxconfig-NT-GFS-GOES.txt \ - postxconfig-NT-GFS-ANL.txt \ - postxconfig-NT-GFS-F00.txt \ - postxconfig-NT-GFS-FLUX.txt \ - postxconfig-NT-GFS-FLUX-F00.txt \ + ./gfs/postxconfig-NT-gfs.txt \ + ./gfs/postxconfig-NT-gfs-goes.txt \ + ./gfs/postxconfig-NT-gfs-anl.txt \ + ./gfs/postxconfig-NT-gfs-f00.txt \ + ./gfs/postxconfig-NT-gfs-flux.txt \ + ./gfs/postxconfig-NT-gfs-flux-f00.txt \ + ./gfs/postxconfig-NT-gfs-two.txt \ + ./gfs/postxconfig-NT-gfs-f00-two.txt \ + ./gefs/postxconfig-NT-gefs.txt \ + ./gefs/postxconfig-NT-gefs-f00.txt \ + ./gefs/postxconfig-NT-gefs-aerosol.txt \ + ./gefs/postxconfig-NT-gefs-f00-aerosol.txt \ + ./sfs/postxconfig-NT-sfs.txt postxconfig-NT-NMM.txt \ postxconfig-NT-NGAC.txt \ - postxconfig-NT-GEFS.txt \ - postxconfig-NT-GEFS-F00.txt \ postxconfig-NT-hafs_sat.txt \ postxconfig-NT-hafs_nosat.txt \ postxconfig-NT-hafs.txt \ - postxconfig-NT-GFS-TWO.txt \ - postxconfig-NT-GFS-F00-TWO.txt \ postxconfig-NT-hrrr.txt \ postxconfig-NT-rap.txt \ postxconfig-NT-fv3lam_rrfs.txt \ postxconfig-NT-UFS-aerosol.txt \ postxconfig-NT-UFS-aerosol-F00.txt \ - postxconfig-NT-GEFS-aerosol.txt \ - postxconfig-NT-GEFS-F00-aerosol.txt \ postxconfig-NT-AQM.txt \ - postxconfig-NT-SFS.txt .PHONY: all clean all: $(ALL_TXT) clean: $(RM) $(ALL_TXT) -postxconfig-NT-GFS.txt: postcntrl_gfs.xml post_avblflds.xml -postxconfig-NT-GFS-GOES.txt: postcntrl_gfs_goes.xml post_avblflds.xml -postxconfig-NT-GFS-ANL.txt: postcntrl_gfs_anl.xml post_avblflds.xml -postxconfig-NT-GFS-F00.txt: postcntrl_gfs_f00.xml post_avblflds.xml -postxconfig-NT-GFS-FLUX.txt: postcntrl_gfs_flux.xml post_avblflds.xml -postxconfig-NT-GFS-FLUX-F00.txt: postcntrl_gfs_flux_f00.xml post_avblflds.xml +./gfs/postxconfig-NT-gfs.txt: ./gfs/postcntrl_gfs.xml post_avblflds.xml +./gfs/postxconfig-NT-gfs-goes.txt: ./gfs/postcntrl_gfs_goes.xml post_avblflds.xml +./gfs/postxconfig-NT-gfs-anl.txt: ./gfs/postcntrl_gfs_anl.xml post_avblflds.xml +./gfs/postxconfig-NT-gfs-f00.txt: ./gfs/postcntrl_gfs_f00.xml post_avblflds.xml +./gfs/postxconfig-NT-gfs-flux.txt: ./gfs/postcntrl_gfs_flux.xml post_avblflds.xml +./gfs/postxconfig-NT-gfs-flux-f00.txt: ./gfs/postcntrl_gfs_flux_f00.xml post_avblflds.xml +./gfs/postxconfig-NT-gfs-two.txt: ./gfs/postcntrl_gfs_two.xml post_avblflds.xml +./gfs/postxconfig-NT-gfs-f00-two.txt: ./gfs/postcntrl_gfs_f00_two.xml post_avblflds.xml +./gefs/postxconfig-NT-gefs.txt: ./gefs/postcntrl_gefs.xml post_avblflds.xml +./gefs/postxconfig-NT-gefs-f00.txt: ./gefs/postcntrl_gefs_f00.xml post_avblflds.xml +./gefs/postxconfig-NT-gefs-aerosol.txt: ./gefs/postcntrl_gefs_aerosol.xml post_avblflds.xml +./gefs/postxconfig-NT-gefs-f00-aerosol.txt: ./gefs/postcntrl_gefs_aerosol_f00.xml post_avblflds.xml +./sfs/postxconfig-NT-sfs.txt: ./sfs/postcntrl_sfs.xml post_avblflds.xml postxconfig-NT-NMM.txt: nam_cntrl_cmaq.xml nam_post_avblflds.xml postxconfig-NT-NGAC.txt: ngac_postcntrl.xml ngac_post_avblflds.xml -postxconfig-NT-GEFS.txt: postcntrl_gefs.xml post_avblflds.xml -postxconfig-NT-GEFS-F00.txt: postcntrl_gefs_f00.xml post_avblflds.xml postxconfig-NT-hafs_sat.txt: postcntrl_hafs_sat.xml post_avblflds.xml postxconfig-NT-hafs_nosat.txt: postcntrl_hafs_nosat.xml post_avblflds.xml postxconfig-NT-hafs.txt: postcntrl_hafs.xml post_avblflds.xml -postxconfig-NT-GFS-TWO.txt: postcntrl_gfs_two.xml post_avblflds.xml -postxconfig-NT-GFS-F00-TWO.txt: postcntrl_gfs_f00_two.xml post_avblflds.xml postxconfig-NT-hrrr.txt: hrrr_postcntrl.xml post_avblflds_raphrrr.xml postxconfig-NT-rap.txt: rap_postcntrl.xml post_avblflds_raphrrr.xml postxconfig-NT-fv3lam_rrfs.txt: fv3lam_rrfs.xml post_avblflds.xml postxconfig-NT-UFS-aerosol.txt: postcntrl_ufs_aerosol.xml post_avblflds.xml postxconfig-NT-UFS-aerosol-F00.txt: postcntrl_ufs_aerosol_f00.xml post_avblflds.xml -postxconfig-NT-GEFS-aerosol.txt: postcntrl_gefs_aerosol.xml post_avblflds.xml -postxconfig-NT-GEFS-F00-aerosol.txt: postcntrl_gefs_aerosol_f00.xml post_avblflds.xml postxconfig-NT-AQM.txt: aqm.xml post_avblflds.xml -postxconfig-NT-SFS.txt: postcntrl_sfs.xml post_avblflds.xml %.txt: $(PERL) $(PERLXML) $^ $@ From e4b1823b1e2b4582f8f8ad8dd6bc4178ed9c3c0e Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Sat, 6 Apr 2024 23:09:06 -0400 Subject: [PATCH 6/8] use cmake to create post flat files --- .gitignore | 5 ++++ CMakeLists.txt | 6 +++- parm/CMakeLists.txt | 73 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8f7abb420..181315555 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,8 @@ # USE CAUTION WHEN ADDING WILDCARDS, as some builds use different filename # # conventions than others # ############################################################################## +build +install build/*/ install*/ @@ -19,3 +21,6 @@ install*/ *.swp configure.upp* + +# prevent committing logfiles when generation flat files +POST_XML_Flat_File_processor_POST_FlatFile.log* diff --git a/CMakeLists.txt b/CMakeLists.txt index dd59b532b..2367f6a0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,7 +114,11 @@ if(IFI_FOUND OR INTERNAL_IFI) endif() add_subdirectory(sorc) -add_subdirectory(parm) + +find_package(Perl) # perl is used in parsing XML files into txt files +if(PERL_FOUND) + add_subdirectory(parm) +endif() # If desired, build the doxygen docs. if(ENABLE_DOCS) diff --git a/parm/CMakeLists.txt b/parm/CMakeLists.txt index e69de29bb..406263ab9 100644 --- a/parm/CMakeLists.txt +++ b/parm/CMakeLists.txt @@ -0,0 +1,73 @@ +set(PERLXML_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/PostXMLPreprocessor.pl") + +# Function to split a string into a list based on a delimiter +function(split_delimited_string_into_list INPUT_STRING DELIMITER OUTPUT_LIST) + string(REPLACE "${DELIMITER}" ";" TEMP_LIST "${INPUT_STRING}") + set(${OUTPUT_LIST} ${TEMP_LIST} PARENT_SCOPE) +endfunction() + +# Function to get filename from path, and replace '-' with '_' +# The replacing is done because cmake targets cannot have '-' +# The filename is used to name the target e.g. postxconfig_NT_gfs +function(convert_filename FILE_PATH OUTPUT_VAR) + get_filename_component(FILE_NAME_WE ${FILE_PATH} NAME_WE) + string(REPLACE "-" "_" NEW_FILE_NAME ${FILE_NAME_WE}) + set(${OUTPUT_VAR} ${NEW_FILE_NAME} PARENT_SCOPE) +endfunction() + +# List of output, input and available files +list(APPEND ALL_TXT + "./gfs/postxconfig-NT-gfs.txt,./gfs/postcntrl_gfs.xml,post_avblflds.xml" + "./gfs/postxconfig-NT-gfs-goes.txt,./gfs/postcntrl_gfs_goes.xml,post_avblflds.xml" + "./gfs/postxconfig-NT-gfs-anl.txt,./gfs/postcntrl_gfs_anl.xml,post_avblflds.xml" + "./gfs/postxconfig-NT-gfs-f00.txt,./gfs/postcntrl_gfs_f00.xml,post_avblflds.xml" + "./gfs/postxconfig-NT-gfs-flux.txt,./gfs/postcntrl_gfs_flux.xml,post_avblflds.xml" + "./gfs/postxconfig-NT-gfs-flux-f00.txt,./gfs/postcntrl_gfs_flux_f00.xml,post_avblflds.xml" + "./gfs/postxconfig-NT-gfs-two.txt,./gfs/postcntrl_gfs_two.xml,post_avblflds.xml" + "./gfs/postxconfig-NT-gfs-f00-two.txt,./gfs/postcntrl_gfs_f00_two.xml,post_avblflds.xml" + "./gefs/postxconfig-NT-gefs.txt,./gefs/postcntrl_gefs.xml,post_avblflds.xml" + "./gefs/postxconfig-NT-gefs-f00.txt,./gefs/postcntrl_gefs_f00.xml,post_avblflds.xml" + "./gefs/postxconfig-NT-gefs-aerosol.txt,./gefs/postcntrl_gefs_aerosol.xml,post_avblflds.xml" + "./gefs/postxconfig-NT-gefs-f00-aerosol.txt,./gefs/postcntrl_gefs_aerosol_f00.xml,post_avblflds.xml" + "./sfs/postxconfig-NT-sfs.txt,./sfs/postcntrl_sfs.xml,post_avblflds.xml" + "./postxconfig-NT-NMM.txt,./nam_cntrl_cmaq.xml,nam_post_avblflds.xml" + "./postxconfig-NT-NGAC.txt,./ngac_postcntrl.xml,ngac_post_avblflds.xml" + "./postxconfig-NT-hafs_sat.txt,./postcntrl_hafs_sat.xml,post_avblflds.xml" + "./postxconfig-NT-hafs_nosat.txt,./postcntrl_hafs_nosat.xml,post_avblflds.xml" + "./postxconfig-NT-hafs.txt,./postcntrl_hafs.xml,post_avblflds.xml" + "./postxconfig-NT-hrrr.txt,./hrrr_postcntrl.xml,post_avblflds_raphrrr.xml" + "./postxconfig-NT-rap.txt,./rap_postcntrl.xml,post_avblflds_raphrrr.xml" + "./postxconfig-NT-fv3lam_rrfs.txt,./fv3lam_rrfs.xml,post_avblflds.xml" + "./postxconfig-NT-UFS-aerosol.txt,./postcntrl_ufs_aerosol.xml,post_avblflds.xml" + "./postxconfig-NT-UFS-aerosol-F00.txt,./postcntrl_ufs_aerosol_f00.xml,post_avblflds.xml" + "./postxconfig-NT-AQM.txt,./aqm.xml,post_avblflds.xml" +) + +# Loop over the list of lists and create a target for each line +foreach(TXT_STRING IN LISTS ALL_TXT) + + # Split each line into a list and get individual values + split_delimited_string_into_list(${TXT_STRING} "," LIST_STRING) + list(GET LIST_STRING 0 target_txt) + list(GET LIST_STRING 1 control_xml) + list(GET LIST_STRING 2 avblflds_xml) + + # Name the target based on the target txt file (remove path and replace - with _) + convert_filename(${target_txt} target_name) + + # Using CMAKE_CURRENT_SOURCE_DIR as WORKING_DIRECTORY is not a CMake best practice + # To eliminate this, the perl script will need modifications + add_custom_command( + OUTPUT ${target_txt} + COMMAND ${PERL_EXECUTABLE} ${PERLXML_SCRIPT} "${control_xml}" "${avblflds_xml}" "${target_txt}" + DEPENDS ${control_xml} ${avblflds_xml} + WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" + COMMENT "Processing ${target_txt}" + VERBATIM + ) + + # Create a make target to run the above custom command + add_custom_target(${target_name} DEPENDS ${target_txt}) # Do not add to "ALL" targets + +endforeach() + From 76eddf4c7563b42c7bd5efd915503b98307cf61a Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Mon, 8 Apr 2024 09:19:30 -0400 Subject: [PATCH 7/8] UPP owners would not want to create the flat files from cmake. rather they would like the devs to use the makefile --- .gitignore | 3 -- CMakeLists.txt | 5 ---- parm/CMakeLists.txt | 73 --------------------------------------------- 3 files changed, 81 deletions(-) delete mode 100644 parm/CMakeLists.txt diff --git a/.gitignore b/.gitignore index 181315555..570d174f6 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,3 @@ install*/ *.swp configure.upp* - -# prevent committing logfiles when generation flat files -POST_XML_Flat_File_processor_POST_FlatFile.log* diff --git a/CMakeLists.txt b/CMakeLists.txt index 2367f6a0f..3c07f5e64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,11 +115,6 @@ endif() add_subdirectory(sorc) -find_package(Perl) # perl is used in parsing XML files into txt files -if(PERL_FOUND) - add_subdirectory(parm) -endif() - # If desired, build the doxygen docs. if(ENABLE_DOCS) find_package(Doxygen REQUIRED) diff --git a/parm/CMakeLists.txt b/parm/CMakeLists.txt deleted file mode 100644 index 406263ab9..000000000 --- a/parm/CMakeLists.txt +++ /dev/null @@ -1,73 +0,0 @@ -set(PERLXML_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/PostXMLPreprocessor.pl") - -# Function to split a string into a list based on a delimiter -function(split_delimited_string_into_list INPUT_STRING DELIMITER OUTPUT_LIST) - string(REPLACE "${DELIMITER}" ";" TEMP_LIST "${INPUT_STRING}") - set(${OUTPUT_LIST} ${TEMP_LIST} PARENT_SCOPE) -endfunction() - -# Function to get filename from path, and replace '-' with '_' -# The replacing is done because cmake targets cannot have '-' -# The filename is used to name the target e.g. postxconfig_NT_gfs -function(convert_filename FILE_PATH OUTPUT_VAR) - get_filename_component(FILE_NAME_WE ${FILE_PATH} NAME_WE) - string(REPLACE "-" "_" NEW_FILE_NAME ${FILE_NAME_WE}) - set(${OUTPUT_VAR} ${NEW_FILE_NAME} PARENT_SCOPE) -endfunction() - -# List of output, input and available files -list(APPEND ALL_TXT - "./gfs/postxconfig-NT-gfs.txt,./gfs/postcntrl_gfs.xml,post_avblflds.xml" - "./gfs/postxconfig-NT-gfs-goes.txt,./gfs/postcntrl_gfs_goes.xml,post_avblflds.xml" - "./gfs/postxconfig-NT-gfs-anl.txt,./gfs/postcntrl_gfs_anl.xml,post_avblflds.xml" - "./gfs/postxconfig-NT-gfs-f00.txt,./gfs/postcntrl_gfs_f00.xml,post_avblflds.xml" - "./gfs/postxconfig-NT-gfs-flux.txt,./gfs/postcntrl_gfs_flux.xml,post_avblflds.xml" - "./gfs/postxconfig-NT-gfs-flux-f00.txt,./gfs/postcntrl_gfs_flux_f00.xml,post_avblflds.xml" - "./gfs/postxconfig-NT-gfs-two.txt,./gfs/postcntrl_gfs_two.xml,post_avblflds.xml" - "./gfs/postxconfig-NT-gfs-f00-two.txt,./gfs/postcntrl_gfs_f00_two.xml,post_avblflds.xml" - "./gefs/postxconfig-NT-gefs.txt,./gefs/postcntrl_gefs.xml,post_avblflds.xml" - "./gefs/postxconfig-NT-gefs-f00.txt,./gefs/postcntrl_gefs_f00.xml,post_avblflds.xml" - "./gefs/postxconfig-NT-gefs-aerosol.txt,./gefs/postcntrl_gefs_aerosol.xml,post_avblflds.xml" - "./gefs/postxconfig-NT-gefs-f00-aerosol.txt,./gefs/postcntrl_gefs_aerosol_f00.xml,post_avblflds.xml" - "./sfs/postxconfig-NT-sfs.txt,./sfs/postcntrl_sfs.xml,post_avblflds.xml" - "./postxconfig-NT-NMM.txt,./nam_cntrl_cmaq.xml,nam_post_avblflds.xml" - "./postxconfig-NT-NGAC.txt,./ngac_postcntrl.xml,ngac_post_avblflds.xml" - "./postxconfig-NT-hafs_sat.txt,./postcntrl_hafs_sat.xml,post_avblflds.xml" - "./postxconfig-NT-hafs_nosat.txt,./postcntrl_hafs_nosat.xml,post_avblflds.xml" - "./postxconfig-NT-hafs.txt,./postcntrl_hafs.xml,post_avblflds.xml" - "./postxconfig-NT-hrrr.txt,./hrrr_postcntrl.xml,post_avblflds_raphrrr.xml" - "./postxconfig-NT-rap.txt,./rap_postcntrl.xml,post_avblflds_raphrrr.xml" - "./postxconfig-NT-fv3lam_rrfs.txt,./fv3lam_rrfs.xml,post_avblflds.xml" - "./postxconfig-NT-UFS-aerosol.txt,./postcntrl_ufs_aerosol.xml,post_avblflds.xml" - "./postxconfig-NT-UFS-aerosol-F00.txt,./postcntrl_ufs_aerosol_f00.xml,post_avblflds.xml" - "./postxconfig-NT-AQM.txt,./aqm.xml,post_avblflds.xml" -) - -# Loop over the list of lists and create a target for each line -foreach(TXT_STRING IN LISTS ALL_TXT) - - # Split each line into a list and get individual values - split_delimited_string_into_list(${TXT_STRING} "," LIST_STRING) - list(GET LIST_STRING 0 target_txt) - list(GET LIST_STRING 1 control_xml) - list(GET LIST_STRING 2 avblflds_xml) - - # Name the target based on the target txt file (remove path and replace - with _) - convert_filename(${target_txt} target_name) - - # Using CMAKE_CURRENT_SOURCE_DIR as WORKING_DIRECTORY is not a CMake best practice - # To eliminate this, the perl script will need modifications - add_custom_command( - OUTPUT ${target_txt} - COMMAND ${PERL_EXECUTABLE} ${PERLXML_SCRIPT} "${control_xml}" "${avblflds_xml}" "${target_txt}" - DEPENDS ${control_xml} ${avblflds_xml} - WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" - COMMENT "Processing ${target_txt}" - VERBATIM - ) - - # Create a make target to run the above custom command - add_custom_target(${target_name} DEPENDS ${target_txt}) # Do not add to "ALL" targets - -endforeach() - From bbf89dfc8208e7ef40c7ec3486647cedc2941304 Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Mon, 8 Apr 2024 09:48:55 -0400 Subject: [PATCH 8/8] fix error in makefile --- parm/makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/parm/makefile b/parm/makefile index 4b8479f31..a0a1a7119 100644 --- a/parm/makefile +++ b/parm/makefile @@ -30,7 +30,7 @@ ALL_TXT= \ ./gefs/postxconfig-NT-gefs-f00.txt \ ./gefs/postxconfig-NT-gefs-aerosol.txt \ ./gefs/postxconfig-NT-gefs-f00-aerosol.txt \ - ./sfs/postxconfig-NT-sfs.txt + ./sfs/postxconfig-NT-sfs.txt \ postxconfig-NT-NMM.txt \ postxconfig-NT-NGAC.txt \ postxconfig-NT-hafs_sat.txt \ @@ -61,17 +61,17 @@ clean: ./gefs/postxconfig-NT-gefs-aerosol.txt: ./gefs/postcntrl_gefs_aerosol.xml post_avblflds.xml ./gefs/postxconfig-NT-gefs-f00-aerosol.txt: ./gefs/postcntrl_gefs_aerosol_f00.xml post_avblflds.xml ./sfs/postxconfig-NT-sfs.txt: ./sfs/postcntrl_sfs.xml post_avblflds.xml -postxconfig-NT-NMM.txt: nam_cntrl_cmaq.xml nam_post_avblflds.xml -postxconfig-NT-NGAC.txt: ngac_postcntrl.xml ngac_post_avblflds.xml -postxconfig-NT-hafs_sat.txt: postcntrl_hafs_sat.xml post_avblflds.xml -postxconfig-NT-hafs_nosat.txt: postcntrl_hafs_nosat.xml post_avblflds.xml -postxconfig-NT-hafs.txt: postcntrl_hafs.xml post_avblflds.xml -postxconfig-NT-hrrr.txt: hrrr_postcntrl.xml post_avblflds_raphrrr.xml -postxconfig-NT-rap.txt: rap_postcntrl.xml post_avblflds_raphrrr.xml -postxconfig-NT-fv3lam_rrfs.txt: fv3lam_rrfs.xml post_avblflds.xml -postxconfig-NT-UFS-aerosol.txt: postcntrl_ufs_aerosol.xml post_avblflds.xml -postxconfig-NT-UFS-aerosol-F00.txt: postcntrl_ufs_aerosol_f00.xml post_avblflds.xml -postxconfig-NT-AQM.txt: aqm.xml post_avblflds.xml +postxconfig-NT-NMM.txt: nam_cntrl_cmaq.xml nam_post_avblflds.xml +postxconfig-NT-NGAC.txt: ngac_postcntrl.xml ngac_post_avblflds.xml +postxconfig-NT-hafs_sat.txt: postcntrl_hafs_sat.xml post_avblflds.xml +postxconfig-NT-hafs_nosat.txt: postcntrl_hafs_nosat.xml post_avblflds.xml +postxconfig-NT-hafs.txt: postcntrl_hafs.xml post_avblflds.xml +postxconfig-NT-hrrr.txt: hrrr_postcntrl.xml post_avblflds_raphrrr.xml +postxconfig-NT-rap.txt: rap_postcntrl.xml post_avblflds_raphrrr.xml +postxconfig-NT-fv3lam_rrfs.txt: fv3lam_rrfs.xml post_avblflds.xml +postxconfig-NT-UFS-aerosol.txt: postcntrl_ufs_aerosol.xml post_avblflds.xml +postxconfig-NT-UFS-aerosol-F00.txt: postcntrl_ufs_aerosol_f00.xml post_avblflds.xml +postxconfig-NT-AQM.txt: aqm.xml post_avblflds.xml %.txt: $(PERL) $(PERLXML) $^ $@