Skip to content

Commit c30b010

Browse files
authored
Revert "Add support for 2D coupling" (#100)
This reverts commit 28d5088.
1 parent 28d5088 commit c30b010

17 files changed

+44
-62
lines changed

CHT/HeatFlux.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ preciceAdapter::CHT::HeatFlux::HeatFlux
2424
dataType_ = scalar;
2525
}
2626

27-
void preciceAdapter::CHT::HeatFlux::write(double * buffer, bool meshConnectivity, const unsigned int dim)
27+
void preciceAdapter::CHT::HeatFlux::write(double * buffer, bool meshConnectivity)
2828
{
2929
int bufferIndex = 0;
3030

@@ -79,7 +79,7 @@ void preciceAdapter::CHT::HeatFlux::write(double * buffer, bool meshConnectivity
7979
}
8080
}
8181

82-
void preciceAdapter::CHT::HeatFlux::read(double * buffer, const unsigned int dim)
82+
void preciceAdapter::CHT::HeatFlux::read(double * buffer)
8383
{
8484
int bufferIndex = 0;
8585

CHT/HeatFlux.H

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ public:
3535

3636
//- Compute heat flux values from the temperature field
3737
// and write them into the buffer
38-
virtual void write(double * buffer, bool meshConnectivity, const unsigned int dim);
38+
virtual void write(double * buffer, bool meshConnectivity);
3939

4040
//- Read heat flux values from the buffer and assign them to
4141
// the gradient of the temperature field
42-
virtual void read(double * buffer, const unsigned int dim);
42+
virtual void read(double * buffer);
4343

4444
//- Destructor
4545
virtual ~HeatFlux(){};

CHT/HeatTransferCoefficient.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ preciceAdapter::CHT::HeatTransferCoefficient::HeatTransferCoefficient
2626
}
2727

2828

29-
void preciceAdapter::CHT::HeatTransferCoefficient::write(double * buffer, bool meshConnectivity, const unsigned int dim)
29+
void preciceAdapter::CHT::HeatTransferCoefficient::write(double * buffer, bool meshConnectivity)
3030
{
3131
int bufferIndex = 0;
3232

@@ -77,7 +77,7 @@ void preciceAdapter::CHT::HeatTransferCoefficient::write(double * buffer, bool m
7777
}
7878

7979

80-
void preciceAdapter::CHT::HeatTransferCoefficient::read(double * buffer, const unsigned int dim)
80+
void preciceAdapter::CHT::HeatTransferCoefficient::read(double * buffer)
8181
{
8282
int bufferIndex = 0;
8383

CHT/HeatTransferCoefficient.H

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ public:
3939
);
4040

4141
//- Write the heat transfer coefficient values into the buffer
42-
virtual void write(double * buffer, bool meshConnectivity, const unsigned int dim);
42+
virtual void write(double * buffer, bool meshConnectivity);
4343

4444
//- Read the heat transfer coefficient values from the buffer
45-
virtual void read(double * buffer, const unsigned int dim);
45+
virtual void read(double * buffer);
4646

4747
//- Destructor
4848
virtual ~HeatTransferCoefficient(){};

CHT/SinkTemperature.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ preciceAdapter::CHT::SinkTemperature::SinkTemperature
2121
dataType_ = scalar;
2222
}
2323

24-
void preciceAdapter::CHT::SinkTemperature::write(double * buffer, bool meshConnectivity, const unsigned int dim)
24+
void preciceAdapter::CHT::SinkTemperature::write(double * buffer, bool meshConnectivity)
2525
{
2626
int bufferIndex = 0;
2727

@@ -78,7 +78,7 @@ void preciceAdapter::CHT::SinkTemperature::write(double * buffer, bool meshConne
7878
}
7979
}
8080

81-
void preciceAdapter::CHT::SinkTemperature::read(double * buffer, const unsigned int dim)
81+
void preciceAdapter::CHT::SinkTemperature::read(double * buffer)
8282
{
8383
int bufferIndex = 0;
8484

CHT/SinkTemperature.H

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ public:
3030
);
3131

3232
//- Write the sink temperature values into the buffer
33-
void write(double * buffer, bool meshConnectivity, const unsigned int dim);
33+
void write(double * buffer, bool meshConnectivity);
3434

3535
//- Read the sink temperature values from the buffer
36-
void read(double * buffer, const unsigned int dim);
36+
void read(double * buffer);
3737

3838
};
3939

CHT/Temperature.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ preciceAdapter::CHT::Temperature::Temperature
2323
dataType_ = scalar;
2424
}
2525

26-
void preciceAdapter::CHT::Temperature::write(double * buffer, bool meshConnectivity, const unsigned int dim)
26+
void preciceAdapter::CHT::Temperature::write(double * buffer, bool meshConnectivity)
2727
{
2828
int bufferIndex = 0;
2929

@@ -66,7 +66,7 @@ void preciceAdapter::CHT::Temperature::write(double * buffer, bool meshConnectiv
6666
}
6767
}
6868

69-
void preciceAdapter::CHT::Temperature::read(double * buffer, const unsigned int dim)
69+
void preciceAdapter::CHT::Temperature::read(double * buffer)
7070
{
7171
int bufferIndex = 0;
7272

CHT/Temperature.H

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ public:
3030
);
3131

3232
//- Write the temperature values into the buffer
33-
void write(double * buffer, bool meshConnectivity, const unsigned int dim);
33+
void write(double * buffer, bool meshConnectivity);
3434

3535
//- Read the temperature values from the buffer
36-
void read(double * buffer, const unsigned int dim);
36+
void read(double * buffer);
3737

3838
};
3939

CouplingDataUser.H

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ public:
4343
void setPatchIDs(std::vector<int> patchIDs);
4444

4545
//- Write the coupling data to the buffer
46-
virtual void write(double * dataBuffer, bool meshConnectivity, const unsigned int dim) = 0;
46+
virtual void write(double * dataBuffer, bool meshConnectivity) = 0;
4747

4848
//- Read the coupling data from the buffer
49-
virtual void read(double * dataBuffer, const unsigned int dim) = 0;
49+
virtual void read(double * dataBuffer) = 0;
5050

5151
//- Destructor
5252
virtual ~CouplingDataUser() {}

FSI/Displacement.C

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pointDisplacement_(
1818
dataType_ = vector;
1919
}
2020

21-
void preciceAdapter::FSI::Displacement::write(double * buffer, bool meshConnectivity, const unsigned int dim)
21+
void preciceAdapter::FSI::Displacement::write(double * buffer, bool meshConnectivity)
2222
{
2323
/* TODO: Implement
2424
* We need two nested for-loops for each patch,
@@ -31,7 +31,7 @@ void preciceAdapter::FSI::Displacement::write(double * buffer, bool meshConnecti
3131
}
3232

3333
// return the displacement to use later in the velocity?
34-
void preciceAdapter::FSI::Displacement::read(double * buffer, const unsigned int dim)
34+
void preciceAdapter::FSI::Displacement::read(double * buffer)
3535
{
3636
// For every element in the buffer
3737
int bufferIndex = 0;
@@ -54,8 +54,7 @@ void preciceAdapter::FSI::Displacement::read(double * buffer, const unsigned int
5454
// Set the displacement to the received one
5555
pointDisplacementFluidPatch[i][0] = buffer[bufferIndex++];
5656
pointDisplacementFluidPatch[i][1] = buffer[bufferIndex++];
57-
if(dim ==3)
58-
pointDisplacementFluidPatch[i][2] = buffer[bufferIndex++];
57+
pointDisplacementFluidPatch[i][2] = buffer[bufferIndex++];
5958
}
6059
}
6160
}

0 commit comments

Comments
 (0)