Skip to content

Commit

Permalink
Remove SENDCOM from make_ntc_bull (#62)
Browse files Browse the repository at this point in the history
# Description
The use of SENDCOM was retired in global workflow. make_ntc_bull is
updated to match.

Refs NOAA-EMC/global-workflow#2479
  • Loading branch information
WalterKolczynski-NOAA committed Apr 12, 2024
1 parent accaeed commit d77c3c9
Showing 1 changed file with 15 additions and 23 deletions.
38 changes: 15 additions & 23 deletions ush/make_ntc_bull.pl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#------------------------------------------------------

if ($ENV{job}) { $job=$ENV{job}; }
if ($ENV{SENDCOM}) { $SENDCOM=$ENV{SENDCOM}; }
if ($ENV{SENDDBN}) { $SENDDBN=$ENV{SENDDBN}; }
$NArgs = @ARGV;

Expand Down Expand Up @@ -112,14 +111,12 @@ sub make_tocbull {
$ByteCount = length($cho2);
print " length is $ByteCount ";
$BulletinFlagFieldSep = sprintf( "****%10.10d****", $ByteCount);
if ($SENDCOM eq "YES") {
if ($ByteCount > 50 ) {
print OUTFILE "$BulletinFlagFieldSep\n";
print OUTFILE $cho2;
}
else {
$ix = 1;
}
if ($ByteCount > 50 ) {
print OUTFILE "$BulletinFlagFieldSep\n";
print OUTFILE $cho2;
}
else {
$ix = 1;
}
}
close OUTFILE;
Expand Down Expand Up @@ -169,14 +166,12 @@ sub make_tocplot {
$ByteCount = length($cho2);
print " length is $ByteCount ";
$BulletinFlagFieldSep = sprintf( "****%10.10d****", $ByteCount);
if ($SENDCOM eq "YES") {
if ($ByteCount > 50 ) {
print OUTFILE "$BulletinFlagFieldSep\n";
print OUTFILE $cho2;
}
else {
$ix = 1;
}
if ($ByteCount > 50 ) {
print OUTFILE "$BulletinFlagFieldSep\n";
print OUTFILE $cho2;
}
else {
$ix = 1;
}
}
close OUTFILE;
Expand Down Expand Up @@ -221,12 +216,9 @@ sub make_tocredb {
$ByteCount = length($cho);
print " length is $ByteCount ";
$BulletinFlagFieldSep = sprintf( "****%10.10d****", $ByteCount);
if ($SENDCOM eq "YES") {
if ($ByteCount > 50 ) {
print OUTFILE "$BulletinFlagFieldSep\n";
print OUTFILE $cho;

}
if ($ByteCount > 50 ) {
print OUTFILE "$BulletinFlagFieldSep\n";
print OUTFILE $cho;
}
close OUTFILE;
if ($SENDDBN eq "YES" ) {
Expand Down

0 comments on commit d77c3c9

Please sign in to comment.