Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Enable user to specify output path for sounding files #1527

Open
wants to merge 3 commits into
base: atmosphere/develop
Choose a base branch
from

Conversation

mgduda
Copy link
Contributor

@mgduda mgduda commented Mar 28, 2018

This merge adds a new namelist option in the &soundings record,
config_sounding_output_path, that selects the path where sounding output
files will be written. The default value is "./". Before writing any
sounding files, the sounding module will attempt to create the specified
directory with "mkdir -p" via a call to the Fortran 2008 routine execute_command_line.

This commit adds a new namelist option in the &soundings record,
config_sounding_output_path, that selects the path where sounding output
files will be written. The default value is "./". Before writing any
sounding files, the sounding module will attempt to create the specified
directory with "mkdir -p" via a system command.
… directory

The 'system' subroutine has apparently not been standardized, so we instead use
'execute_command_line' from Fortran 2008.
The call to execute_command_line to create the sounding file output directory
inexplicably segfaults for some model configurations (e.g., the 15-3 km HWT runs)
but not others (e.g., a basic 120-km test run). This appears to be some issue
with the execute_command_line routine itself:
* calling with 'mkdir -p '//trim(soundingPath) segfaults
* calling with
     tempcmd = 'mkdir -p '//trim(soundingPath)
     call execute_command_line(trim(tempcmd), ...)
  also segfaults
* calling with
     tempcmd = 'mkdir -p '//trim(soundingPath)
     call execute_command_line(tempcmd, ...)
  seems to be working
@mgduda mgduda changed the base branch from develop to atmosphere/develop March 28, 2018 21:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant