3636namespace CInterpolatorFactory {
3737CInterpolator* CreateInterpolator (CGeometry ****geometry_container,
3838 const CConfig* const * config,
39- const vector<vector<unique_ptr< CInterpolator> > >& interp_container ,
39+ const CInterpolator* transpInterpolator ,
4040 unsigned iZone, unsigned jZone, bool verbose) {
4141
4242 CInterpolator* interpolator = nullptr ;
@@ -56,27 +56,27 @@ CInterpolator* CreateInterpolator(CGeometry ****geometry_container,
5656
5757 if (type == WEIGHTED_AVERAGE) {
5858 if (verbose) cout << " using a sliding mesh approach." << endl;
59- interpolator = new CSlidingMesh (geometry_container, config, interp_container, iZone, jZone);
59+ interpolator = new CSlidingMesh (geometry_container, config, iZone, jZone);
6060 }
6161 else if (config[jZone]->GetConservativeInterpolation ()) {
6262 if (verbose) cout << " using the mirror approach, \" transposing\" coefficients from opposite mesh." << endl;
63- interpolator = new CMirror (geometry_container, config, interp_container , iZone, jZone);
63+ interpolator = new CMirror (geometry_container, config, transpInterpolator , iZone, jZone);
6464 }
6565 else {
6666 switch (type) {
6767 case ISOPARAMETRIC:
6868 if (verbose) cout << " using the isoparametric approach." << endl;
69- interpolator = new CIsoparametric (geometry_container, config, interp_container, iZone, jZone);
69+ interpolator = new CIsoparametric (geometry_container, config, iZone, jZone);
7070 break ;
7171
7272 case NEAREST_NEIGHBOR:
7373 if (verbose) cout << " using a nearest neighbor approach." << endl;
74- interpolator = new CNearestNeighbor (geometry_container, config, interp_container, iZone, jZone);
74+ interpolator = new CNearestNeighbor (geometry_container, config, iZone, jZone);
7575 break ;
7676
7777 case RADIAL_BASIS_FUNCTION:
7878 if (verbose) cout << " using a radial basis function approach." << endl;
79- interpolator = new CRadialBasisFunction (geometry_container, config, interp_container, iZone, jZone);
79+ interpolator = new CRadialBasisFunction (geometry_container, config, iZone, jZone);
8080 break ;
8181
8282 default :
0 commit comments