Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WRF_LES
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Magdalena Sophia Fritz
WRF_LES
Commits
e9c3f7ee
Commit
e9c3f7ee
authored
6 months ago
by
Magdalena Sophia Fritz
Browse files
Options
Downloads
Patches
Plain Diff
redirect rsl.* output
parent
1b93bfd4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
external/RSL_LITE/c_code.c
+13
-10
13 additions, 10 deletions
external/RSL_LITE/c_code.c
with
13 additions
and
10 deletions
external/RSL_LITE/c_code.c
+
13
−
10
View file @
e9c3f7ee
...
...
@@ -14,6 +14,8 @@
#ifdef _WIN32
#include
<Winsock2.h>
#else
#include
<unistd.h>
#endif
#ifdef NCEP_DEBUG_MULTIDIR
// # include <errno.h>
...
...
@@ -38,6 +40,7 @@ void RSL_LITE_ERROR_DUP1 ( int *me , int *size )
char
filename
[
256
]
;
char
dirname
[
256
]
;
char
hostname
[
256
]
;
char
output_dir
[
256
]
=
"/jetfs/scratch/mfritz/data/LES_simulations/output/"
;
// Set the desired directory path
/* redirect standard out and standard error based on compile options*/
...
...
@@ -48,21 +51,21 @@ void RSL_LITE_ERROR_DUP1 ( int *me , int *size )
# ifndef RSL0_ONLY
if
(
*
size
<
ORIG_RSL_CUTOFF
)
{
sprintf
(
filename
,
"rsl.out.%04d"
,
*
me
)
;
sprintf
(
filename
,
"
%s/
rsl.out.%04d"
,
output_dir
,
*
me
)
;
}
else
{
sprintf
(
filename
,
"rsl.out.%08d"
,
*
me
)
;
sprintf
(
filename
,
"
%s/
rsl.out.%08d"
,
output_dir
,
*
me
)
;
}
# else
if
(
*
me
==
0
)
{
if
(
*
size
<
ORIG_RSL_CUTOFF
)
{
sprintf
(
filename
,
"rsl.out.%04d"
,
*
me
)
;
sprintf
(
filename
,
"
%s/
rsl.out.%04d"
,
output_dir
,
*
me
)
;
}
else
{
sprintf
(
filename
,
"rsl.out.%08d"
,
*
me
)
;
sprintf
(
filename
,
"
%s/
rsl.out.%08d"
,
output_dir
,
*
me
)
;
}
}
else
...
...
@@ -91,21 +94,21 @@ void RSL_LITE_ERROR_DUP1 ( int *me , int *size )
# ifndef RSL0_ONLY
if
(
*
size
<
ORIG_RSL_CUTOFF
)
{
sprintf
(
filename
,
"rsl.error.%04d"
,
*
me
)
;
sprintf
(
filename
,
"
%s/
rsl.error.%04d"
,
output_dir
,
*
me
)
;
}
else
{
sprintf
(
filename
,
"rsl.error.%08d"
,
*
me
)
;
sprintf
(
filename
,
"
%s/
rsl.error.%08d"
,
output_dir
,
*
me
)
;
}
# else
if
(
*
me
==
0
)
{
if
(
*
size
<
ORIG_RSL_CUTOFF
)
{
sprintf
(
filename
,
"rsl.error.%04d"
,
*
me
)
;
sprintf
(
filename
,
"
%s/
rsl.error.%04d"
,
output_dir
,
*
me
)
;
}
else
{
sprintf
(
filename
,
"rsl.error.%08d"
,
*
me
)
;
sprintf
(
filename
,
"
%s/
rsl.error.%08d"
,
output_dir
,
*
me
)
;
}
}
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment