Hi,
I'm trying to implement a liquid bridge model and wanted to use the available washino model in LIGGGHTS as starting point. So I just renamed the file:
cohesion_model_washino_capillary_viscous.h
cohesion_model_lqb.h
and within the file adjusted accordingly the name. Also for the identifier, gave it a value of 9:
#ifdef COHESION_MODEL
COHESION_MODEL(COHESION_LQB,lqb,9)
#else
When I try to compile the code I get error regarding redefinition of the model parameters. E.g.
// ------------ part of compilation
In file included from ../style_cohesion_model.h:5:0,
from ../granular_styles.cpp:74:
../cohesion_model_washino_capillary_viscous.h: In function ‘VectorProperty* MODEL_PARAMS::createMaxLiquidContent(PropertyRegistry&, const char*, bool)’:
../cohesion_model_washino_capillary_viscous.h:82:35: error: redefinition of ‘VectorProperty* MODEL_PARAMS::createMaxLiquidContent(PropertyRegistry&, const char*, bool)’
inline static VectorProperty* createMaxLiquidContent(PropertyRegistry & registry, const char * caller, bool sanity_checks)
^
In file included from ../style_cohesion_model.h:2:0,
from ../granular_styles.cpp:74:
../cohesion_model_lqb.h:82:35: error: ‘VectorProperty* MODEL_PARAMS::createMaxLiquidContent(PropertyRegistry&, const char*, bool)’ previously defined here
inline static VectorProperty* createMaxLiquidContent(PropertyRegistry & registry, const char * caller, bool sanity_checks)
// --------------------------------
Attached the complete log and code. So just wondering how can I fix this.
Thank you.
Ali
Attachment | Size |
---|---|
![]() | 74.69 KB |
![]() | 24.24 KB |
AliBlues | Fri, 09/29/2017 - 13:57
ISSUE WITH COMPILING A LIQUID BRIDGE MODEL
Hi,
I would appreciate feedback on how to fix this issue.
Best
AliBlues | Mon, 10/02/2017 - 10:23
ISSUE WITH COMPILING A LIQUID BRIDGE MODEL
Hi,
Any suggestions?
Thanks!
paul | Thu, 10/05/2017 - 18:46
Try adding Lbq or something
Try adding Lbq or something like that to every occurence of createMaxSeparationDistance.
The compiler is complaining about it having been defined already - rightly so, since it occurs in both the washino and your custom model.