Skip to content

Commit cbafb4f

Browse files
committed
Added check for COMP column != all if not using diff attenuation
1 parent bbc2977 commit cbafb4f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/fast++-read_input.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -1661,6 +1661,12 @@ bool read_lir(const options_t& opts, input_state_t& state) {
16611661
note("allowed values are 'all', 'bc', or 'cirrus'");
16621662
return false;
16631663
}
1664+
1665+
if (!opts.differential_a_v && comp != lir_component::all) {
1666+
error("cannot specify attenuation component other than 'all' when "
1667+
"DIFFERENTIAL_A_V=0");
1668+
return false;
1669+
}
16641670
}
16651671

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

0 commit comments

Comments
 (0)