I'm trying to compile SU2 with the precice-su2-adapter as described on this github-page. Especially i try to build the AD-version of SU2(see https://su2code.github.io/docs/AD-Build/). Running the SU2 make install command i get the following error corresponding to parts of the replaced files:
In (...) driver_structure.cpp:2981:68: error: cannot convert ‘su2double {aka codi::ActiveReal<codi::JacobiTape<codi::ChunkTapeTypes<double, codi::LinearIndexHandler > > >}’ to ‘double’ in initialization
dt = new double(config_container[ZONE_0]->GetDelta_UnstTimeND());
^
Makefile:2748: recipe for target '../src/___bin_SU2_CFD_AD-driver_structure.o' failed
precice_usage = config_container[ZONE_0]->GetpreCICE_Usage();
if (precice_usage) {
precice = new Precice(rank, size, geometry_container, solver_container, config_container, grid_movement);
dt = new double(config_container[ZONE_0]->GetDelta_UnstTimeND());
precice->configure(config_container[ZONE_0]->GetpreCICE_ConfigFileName());
max_precice_dt = new double(precice->initialize());
}
I use SU2 version 6.0.0 and preCICE version 1.2.0 on Ubuntu 18.04.1 LTS. The preCICE tests work fine if I ignore the mpi and petsc rbf tests as suggested.