CHM icon indicating copy to clipboard operation
CHM copied to clipboard

Prepending working dir path

Open NicWayand opened this issue 8 years ago • 5 comments

Issue in Clion only where working directory is prepended to forcing file path. This does not happen when running from command line. Unknown why this difference is.

NicWayand avatar Feb 15 '17 19:02 NicWayand

Can you please post an example of the configuration w.r.t the CHM binary directory that triggers this?

Chrismarsh avatar Feb 15 '17 20:02 Chrismarsh

image

NicWayand avatar Feb 15 '17 20:02 NicWayand

From our PMs, it seems it is more than just this though.

To repro, am I correct in thinking it needs:

  • Full path to json AND
  • Full path to forcing data

Chrismarsh avatar Feb 15 '17 20:02 Chrismarsh

Yes correct.

Forcing config file is:

"forcing":
  {
   "file":"/media/data2/GEM/west/CHM_archive/GEM_forcing.json"
  }

Where the file paths to individual forcing files in this config file, are Absolute paths as well.

NicWayand avatar Feb 15 '17 20:02 NicWayand

Temporary workaround is to make all paths relative (forcing config file path, AND paths within that file to forcing files themselves).

NicWayand avatar Mar 14 '17 21:03 NicWayand