Skip to content

Commit

Permalink
Merge pull request #314 from LBL-EESA/cf_writer_empty_filename_fix
Browse files Browse the repository at this point in the history
Closes #310 Handled the empty filename error for the cf_writer
  • Loading branch information
elbashandy authored Dec 12, 2019
2 parents 73fa98f + b0885b1 commit f2fb77a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions io/teca_cf_writer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,12 @@ const_p_teca_dataset teca_cf_writer::execute(unsigned int port,

// construct the file name
std::string out_file = this->file_name;
if (out_file.empty())
{
TECA_ERROR("filename was not set for cf_writer")
return nullptr;
}

if (!this->date_format.empty())
{
// use the date string for the time information in the filename
Expand Down

0 comments on commit f2fb77a

Please sign in to comment.