Skip to content

Commit

Permalink
Merge pull request #1300 from su2code/feature_pysu2_DEF
Browse files Browse the repository at this point in the history
Refactorization of SU2 Grid Deformation for Python
  • Loading branch information
pcarruscag committed Feb 12, 2023
2 parents 98507bc + 5f15454 commit 58cf2d4
Show file tree
Hide file tree
Showing 34 changed files with 3,227 additions and 2,293 deletions.
1 change: 1 addition & 0 deletions Common/include/geometry/primal_grid/CPrimalGrid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

#include <iostream>
#include <vector>
#include <limits>
#include <cstdlib>
#include <limits>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion Common/include/grid_movement/CSurfaceMovement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ class CSurfaceMovement : public CGridMovement {
* \param[in] geometry - Geometrical definition of the problem.
* \param[in] val_mesh_filename - Name of the grid output file.
*/
void WriteFFDInfo(CSurfaceMovement **surface_movement, CGeometry **geometry, CConfig **config);
void WriteFFDInfo(CSurfaceMovement **surface_movement, CGeometry ****geometry, CConfig **config);

/*!
* \brief Get information about if there is a complete FFDBox definition, or it is necessary to
Expand Down
6 changes: 3 additions & 3 deletions Common/src/grid_movement/CSurfaceMovement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4672,7 +4672,7 @@ void CSurfaceMovement::MergeFFDInfo(CGeometry *geometry, CConfig *config) {

}

void CSurfaceMovement::WriteFFDInfo(CSurfaceMovement** surface_movement, CGeometry **geometry, CConfig **config) {
void CSurfaceMovement::WriteFFDInfo(CSurfaceMovement** surface_movement, CGeometry ****geometry, CConfig **config) {


unsigned short iOrder, jOrder, kOrder, iFFDBox, iCornerPoints, iParentFFDBox, iChildFFDBox, iZone;
Expand All @@ -4683,13 +4683,13 @@ void CSurfaceMovement::WriteFFDInfo(CSurfaceMovement** surface_movement, CGeomet

bool polar = (config[ZONE_0]->GetFFD_CoordSystem() == POLAR);

unsigned short nDim = geometry[ZONE_0]->GetnDim();
unsigned short nDim = geometry[ZONE_0][INST_0][MESH_0]->GetnDim();

for (iZone = 0; iZone < config[ZONE_0]->GetnZone(); iZone++){

/*--- Merge the parallel FFD info ---*/

surface_movement[iZone]->MergeFFDInfo(geometry[iZone], config[iZone]);
surface_movement[iZone]->MergeFFDInfo(geometry[iZone][INST_0][MESH_0], config[iZone]);

if (iZone > 0){

Expand Down
443 changes: 172 additions & 271 deletions SU2_CFD/include/drivers/CDriver.hpp

Large diffs are not rendered by default.

Loading

0 comments on commit 58cf2d4

Please sign in to comment.