SUCCESSIVE PROFILESFUNCTION

Hello Everyone,
I am trying to extract transient data as in the one in Useiostream.cpp. Trying to get temperature Vs length of domain (in x direction)for different times. Using the following code

Box2D profileSection(0, nx-1, ny/2, ny/2); //slice for the middle of the domain

        successiveProfiles<< setprecision(4)
	<<*multiply (parameters.getDeltaX() ,*computeDensity (adlattice, profileSection) )<< endl;

Not sure if its giving me the right output. I am sure it has something to do with the first argument for the multiply pointer, but can’t figure it out especially for the temperature.

Can anyone help?