Skip to content

Commit 8486dfc

Browse files
committed
add guard
1 parent 5c5f192 commit 8486dfc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

include/pidomus.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,22 +203,25 @@ class piDoMUS : public ParameterAcceptor, public SundialsInterface<typename LAC:
203203
LADealII::VectorType &locally_relevant_y_expl,
204204
bool adaptive_refinement);
205205

206-
206+
#ifdef DEAL_II_WITH_TRILINOS
207207
void refine_and_transfer_solutions (LATrilinos::VectorType &y,
208208
LATrilinos::VectorType &y_dot,
209209
LATrilinos::VectorType &y_expl,
210210
LATrilinos::VectorType &locally_relevant_y,
211211
LATrilinos::VectorType &locally_relevant_y_dot,
212212
LATrilinos::VectorType &locally_relevant_y_expl,
213213
bool adaptive_refinement);
214+
#endif //DEAL_II_WITH_TRILINOS
214215

216+
#ifdef DEAL_II_WITH_PETSC
215217
void refine_and_transfer_solutions (LAPETSc::VectorType &y,
216218
LAPETSc::VectorType &y_dot,
217219
LAPETSc::VectorType &y_expl,
218220
LAPETSc::VectorType &distributed_y,
219221
LAPETSc::VectorType &distributed_y_dot,
220222
LAPETSc::VectorType &distributed_y_expl,
221223
bool adaptive_refinement);
224+
#endif //DEAL_II_WITH_PETSC
222225

223226
void set_constrained_dofs_to_zero(typename LAC::VectorType &v) const;
224227

source/pidomus.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ void piDoMUS<dim, spacedim, LAC>::assemble_matrices (const double t,
680680

681681
/* ------------------------ MESH AND GRID ------------------------ */
682682

683+
#ifdef DEAL_II_WITH_TRILINOS
683684
template <int dim, int spacedim, typename LAC>
684685
void piDoMUS<dim, spacedim, LAC>::
685686
refine_and_transfer_solutions(LATrilinos::VectorType &y,
@@ -732,7 +733,9 @@ refine_and_transfer_solutions(LATrilinos::VectorType &y,
732733
locally_relevant_y_expl = y_expl;
733734

734735
}
736+
#endif //DEAL_II_WITH_TRILINOS
735737

738+
#ifdef DEAL_II_WITH_PETSC
736739
template <int dim, int spacedim, typename LAC>
737740
void piDoMUS<dim, spacedim, LAC>::
738741
refine_and_transfer_solutions(LAPETSc::VectorType &y,
@@ -779,6 +782,7 @@ refine_and_transfer_solutions(LAPETSc::VectorType &y,
779782
y_dot = new_sol_dot;
780783
y_expl = new_sol_expl;
781784
}
785+
#endif //DEAL_II_WITH_PETSC
782786

783787
template <int dim, int spacedim, typename LAC>
784788
void piDoMUS<dim, spacedim, LAC>::

0 commit comments

Comments
 (0)