Skip to content

Commit

Permalink
Added check for COMP column != all if not using diff attenuation
Browse files Browse the repository at this point in the history
  • Loading branch information
cschreib committed Jun 12, 2019
1 parent bbc2977 commit cbafb4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/fast++-read_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1661,6 +1661,12 @@ bool read_lir(const options_t& opts, input_state_t& state) {
note("allowed values are 'all', 'bc', or 'cirrus'");
return false;
}

if (!opts.differential_a_v && comp != lir_component::all) {
error("cannot specify attenuation component other than 'all' when "
"DIFFERENTIAL_A_V=0");
return false;
}
}

if (i >= state.id.size() || id != state.id[i]) {
Expand Down

0 comments on commit cbafb4f

Please sign in to comment.