add SCAL wetting convention
This commit is contained in:
1 parent
90afe56ead
commit
317f5f3bbe
1 file changed
+5
@@ -288,12 +288,17 @@ void ScaLBL_ColorModel::AssignComponentLabels(double *phase)
|
||||
|
||||
auto LabelList = color_db->getVector<int>( "ComponentLabels" );
|
||||
auto AffinityList = color_db->getVector<double>( "ComponentAffinity" );
|
||||
auto WettingConvention = color_db->getWithDefault<std::string>( "WettingConvention", "none" );
|
||||
|
||||
NLABELS=LabelList.size();
|
||||
if (NLABELS != AffinityList.size()){
|
||||
ERROR("Error: ComponentLabels and ComponentAffinity must be the same length! \n");
|
||||
}
|
||||
|
||||
if (WettingConvention == "SCAL"){
|
||||
for (size_t idx=0; idx<NLABELS; idx++) AffinityList[idx] *= -1.0;
|
||||
}
|
||||
|
||||
double label_count[NLABELS];
|
||||
double label_count_global[NLABELS];
|
||||
// Assign the labels
|
||||
|
||||
Reference in new issue
Block a user