CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

How to access protected variable?

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   April 15, 2014, 01:21
Default How to access protected variable?
Manjunath Reddy
Join Date: Jun 2013
Posts: 38
Rep Power: 4
manju819 is on a distinguished road

While making Ldumatrix.C in which is in test folder. I'm getting error with this lines

UEqnp.addBoundaryDiag(U3Eqnp.diag(), 0);
UEqnp.addBoundarySource(U3Eqnp.source(), false);

That is
/opt/openfoam222/src/finiteVolume/lnInclude/fvMatrix.C:150:6: error: ‘void Foam::fvMatrix<Type>::addBoundarySource(Foam::Fiel d<Type>&, bool) const [with Type = Foam::Vector<double>]’ is protected

which is showing addBoundarySource is protected how to access that please help me...

manju819 is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How access member variable of a boundary condition Vesposo OpenFOAM Programming & Development 1 March 13, 2014 08:49
emag beta feature: charge density charlotte CFX 4 March 22, 2011 10:14
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas Main CFD Forum 1 May 30, 2008 04:35
Error: access: unbound variable cfd-novice FLUENT 0 April 3, 2003 04:53
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 21:09

All times are GMT -4. The time now is 18:40.