Skip to content

Commit fb02214

Browse files
committed
Add warning.
1 parent 785a362 commit fb02214

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

meson.build

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ if get_option('enable-autodiff') or get_option('enable-directdiff')
7777
codi_for_args = ['-DCODI_FORWARD_TYPE']
7878
endif
7979

80-
if get_option('enable-autodiff')
80+
if get_option('enable-autodiff') and not omp
8181
if get_option('codi-tape') == 'JacobianLinear'
8282
codi_rev_args += '-DCODI_JACOBIAN_LINEAR_TAPE'
8383
elif get_option('codi-tape') == 'JacobianReuse'
@@ -93,6 +93,10 @@ if get_option('enable-autodiff')
9393
else
9494
message('Invalid CoDiPack tape choice @1@'.format(get_option('codi-tape')))
9595
endif
96+
97+
if get_option('codi-tape') != 'JacobianLinear'
98+
warning('The tape choice @1@ is not tested regularly in SU2'.format(get_option('codi-tape')))
99+
endif
96100
endif
97101

98102
# add cgns library

0 commit comments

Comments
 (0)