Skip to content

Commit

Permalink
Update location_id to be string
Browse files Browse the repository at this point in the history
  • Loading branch information
mjprilliman committed Oct 11, 2023
1 parent fd47096 commit 6333420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssc/cmod_tidalfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static var_info _cm_tidal_file_reader[] = {
{ SSC_OUTPUT, SSC_NUMBER, "tz", "Time zone", "", "", "Weather Reader", "", "", "" },
{ SSC_OUTPUT, SSC_STRING, "data_source", "Data source", "", "", "Weather Reader", "", "", "" },
{ SSC_OUTPUT, SSC_STRING, "notes", "Notes", "", "", "Weather Reader", "", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "location_id", "Location ID", "", "", "Weather Reader", "tidal_resource_model_choice=1", "", "" },
{ SSC_OUTPUT, SSC_STRING, "location_id", "Location ID", "", "", "Weather Reader", "tidal_resource_model_choice=1", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "distance_to_shore_file", "Distance to shore", "m", "", "Weather Reader", "tidal_resource_model_choice=1", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "water_depth_file", "Water depth", "m", "", "Weather Reader", "tidal_resource_model_choice=1", "", "" },

Expand Down Expand Up @@ -204,7 +204,7 @@ class cm_tidal_file_reader : public compute_module
assign("notes", var_data(values[12]));
}
else {
assign("location_id", var_data(std::stod(values[1])));
assign("location_id", var_data(values[1]));
assign("distance_to_shore_file", var_data(std::stod(values[7])));
assign("water_depth_file", var_data(std::stod(values[18])));
assign("lat", var_data(std::stod(values[3])));
Expand Down

0 comments on commit 6333420

Please sign in to comment.