CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

gdb question (How to track the some parameters..)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2015, 02:58
Default gdb question (How to track the some parameters..)
  #1
New Member
 
Seokwon Whang
Join Date: May 2012
Posts: 25
Rep Power: 13
hswzzz is on a distinguished road
Dear foamers,

Recently, I tried to debug by using 'gdb' and 'gdbOF'.

For the practice, I chose "scalarTransportFoam".

I want to 'print' or 'watch' diffusivity, dimensionedScalar DT.

When I use command 'print' or 'watch', I think it shows every information about DT...such as

$6 = {name_ = {<Foam::string> = {<std::basic_string<char, std::char_traits<char>, std::allocator<char> >
> = "DT", static typeName = 0x7ffff52cba48 "string", static debug = 0, static null = {<std::basic_string
<char, std::char_traits<char>, std::allocator<char> >> = "", static typeName = 0x7ffff52cba48 "string",
static debug = 0, static null = <same as static member of an already seen type>}}, static typeName = 0x7
ffff52cc380 "word", static debug = 0, static null = {<Foam::string> = {<std::basic_string<char, std::cha
r_traits<char>, std::allocator<char> >> = "", static typeName = 0x7ffff52cba48 "string", static debug =
0, static null = {<std::basic_string<char, std::char_traits<char>, std::allocator<char> >> = "", static
typeName = 0x7ffff52cba48 "string", static debug = 0, static null = <same as static member of an already
seen type>}},




I just want to show the value of the 'DT'..
hswzzz is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pro/E to ANSYS Parameterization Guide Trues ANSYS 4 April 18, 2018 05:52
How to get Pro/E Parameters to Show Up Trues CFX 4 September 17, 2012 20:26
twoPhaseEulerFoam - parameters grjmell OpenFOAM 1 June 16, 2011 08:13
question about particle track pengfei FLUENT 1 November 20, 2009 06:33
question on conditional breakpoint in using gdb Wen Long Main CFD Forum 4 April 18, 2002 15:56


All times are GMT -4. The time now is 12:57.