Skip to content

Commit e2caabe

Browse files
committed
BUG: need / in path
1 parent 55a855f commit e2caabe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/output_netcdf.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void output_netcdf_3d(std::vector<size_t> count_start,
6868
bool OutputContainer::read_container_netcdf() {
6969

7070
bool didWork = true;
71-
std::string whole_filename = directory + filename + ".nc";
71+
std::string whole_filename = directory + '/' + filename + ".nc";
7272
std::string UNITS = "units";
7373

7474
try {
@@ -161,7 +161,7 @@ bool OutputContainer::read_container_netcdf() {
161161
bool OutputContainer::write_container_netcdf() {
162162

163163
bool didWork = true;
164-
std::string whole_filename = directory + filename + ".nc";
164+
std::string whole_filename = directory + '/' + filename + ".nc";
165165
std::string UNITS = "units";
166166
std::string LONG_NAME = "long_name";
167167

0 commit comments

Comments
 (0)