Skip to content

Commit 6344d27

Browse files
committed
Small fixes for sequential computation
1 parent 2bc1821 commit 6344d27

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Common/src/grid_movement/CRadialBasisFunctionInterpolation.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,10 @@ void CRadialBasisFunctionInterpolation::GetInterpolationCoefficients(CGeometry*
136136

137137
if(dataReduction){
138138

139-
140-
141139
GreedyIteration(geometry, config);
142140
}else{
143-
144-
141+
//TODO find more elegant way to assign this variable
142+
Global_nControlNodes = controlNodes->size();
145143
#ifdef HAVE_MPI
146144
MPI_Operations(geometry);
147145
#endif
@@ -483,7 +481,7 @@ void CRadialBasisFunctionInterpolation::UpdateGridCoord(CGeometry* geometry, CCo
483481
/*--- Applying the surface deformation, which are stored in the deformation vector ---*/
484482

485483
unsigned long nControlNodes = deformationVector.size()/nDim; // size on master_node is different in case of mpi
486-
for(cNode = 0; cNode < Local_nControlNodes; cNode++){
484+
for(cNode = 0; cNode < nControlNodes; cNode++){
487485
if(config->GetMarker_All_Moving((*controlNodes)[cNode]->GetMarker())){
488486
for(iDim = 0; iDim < nDim; iDim++){
489487
#ifdef HAVE_MPI //TODO these are now the same statements

0 commit comments

Comments
 (0)