Skip to content

Commit

Permalink
Wind fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvielamythepaut committed Nov 21, 2023
1 parent 04dcb88 commit dae13d1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/decoders/GribDecoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -751,14 +751,25 @@ void GribDecoder::decode2D(const Transformation&) {
}

void GribDecoder::openField() {

current_position_ = (large_field_position_) ? large_field_position_ : field_position_;
current_file_name_ = file_name_;

field_ = open(field_);
}

void GribDecoder::openFirstComponent() {
current_position_ = position_1_;

field_ = open(field_);
if (second_file_name_ == "grib_input_file_name") {
current_position_ = ( position_2_ == -1 ) ? 2 : position_2_;
current_file_name_= file_name_;
}
else {
current_position_ = ( position_2_ == -1 ) ? 1 : position_2_;
current_file_name_= second_file_name_;
}

}

void GribDecoder::openSecondComponent() {
Expand Down

0 comments on commit dae13d1

Please sign in to comment.