Skip to content

Check for VAR_SSO when using topo_wind#10

Merged
kkeene44 merged 1 commit intowrf-model:masterfrom
kkeene44:VAR_SSO
Oct 7, 2016
Merged

Check for VAR_SSO when using topo_wind#10
kkeene44 merged 1 commit intowrf-model:masterfrom
kkeene44:VAR_SSO

Conversation

@kkeene44
Copy link
Collaborator

@kkeene44 kkeene44 commented Oct 7, 2016

TYPE: bug fix

KEYWORDS: VAR_SSO, topo_wind

SOURCE: Internal

DESCRIPTION OF CHANGES:
Versions of WPS prior to V3.4 did not include VAR_SSO static data. This is necessary for running the topo_wind option in WRF (also introduced in version 3.4). If someone tries to use this option with a newer version of WRF, but with older WPS files, this causes problems, and we need this to cause a fatal error. Added a state variable to Registry.EM_COMMON called 'got_var_sso' (logical). Added a check in module_initialize_real.F to determine if var_sso is zero anywhere in the domain. If so, we set it to .true. Because we need to use a function in the module_initialize_real.F check that returns an 'OR' logical when looping through multiple processors, in module_dm.F, it was necessary to create a logical function called 'wrf_dm_lor_logical' that takes the input value and gives a return value (in the meantime, went ahead and added a similar function for an 'AND' logical in case it's needed in the future). Finally, added a check in start_em.F to make sure if using the topo wind option, VARSSO data is available. If not, it calls a fatal error and prints 'topo_wind requires VAR_SSO data'.

LIST OF MODIFIED FILES:
M Registry/Registry.EM_COMMON
M dyn_em/module_initialize_real.F
M dyn_em/start_em.F
M external/RSL_LITE/module_dm.F

TESTS CONDUCTED: Ran tests to verify that when using WPS data without VAR_SSO, with the topo_wind option, I get a fatal error specifying the reason. Regression test successful.

@kkeene44 kkeene44 changed the title Bug fix for real*8 with Intel, and check for VAR_SSO when using topo_wind Check for VAR_SSO when using topo_wind Oct 7, 2016
…. VAR_SSO was not available in WPS version prior to V3.4. If using an older version of WPS to run a newer version of WRF, with the topo_wind option, this was problematic.
Copy link
Contributor

@mkavulich mkavulich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the mistakes that I made seem to be fixed. 👍

@kkeene44 kkeene44 merged commit 847a4fa into wrf-model:master Oct 7, 2016
LOGICAL inval, retval
INTEGER comm, ierr
CALL wrf_get_dm_communicator(comm)
CALL mpi_allreduce ( inval, retval , 1, MPI_LOGICAL, MPI_LAND, comm, ierr )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkavulich @kkeene44
This line should be MPI_LOR not MPI_LAND. This is in the newly manufactured function wrf_dm_lor_logical.

dmey added a commit to TEB-model/wrf-teb that referenced this pull request Mar 31, 2020
twjuliano pushed a commit to twjuliano/WRF that referenced this pull request Jun 15, 2021
…_fix

fix to surface layer on d01 when initializing nested domain
janmandel added a commit to wrf-sfire/WRF-SFIRE that referenced this pull request Feb 5, 2022
janmandel added a commit to wrf-sfire/WRF-SFIRE that referenced this pull request Feb 5, 2022
…el#10

previous default fire_wind_log_interp = 4 (with wind reduction factors)
is obsolete and not parallel consistent, delete? wrf-model#23
Fixes wrf-model#13
twjuliano pushed a commit to twjuliano/WRF that referenced this pull request Jun 13, 2022
commenting out suggested process configuration in sanity check namelist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants