[lammps-users] Still Problem with adding a function to ComputeTempSphere


I tried to add a function

double ComputeTempSphere::compute_scalar_temp_translational()

I also added a function

virtual double Compute::compute_scalar_temp_translational(){return 0;}

to make it accessable from the basis class.

Even if the function is exactly equal to

double ComputeTempSphere::compute_scalar()

it gives a 0 as result, if I call it via:

void FixTempBerendsen::end_of_step(), where i just changed from
compute_scalar to compute_scalar_temp_translational.

Best Gerald Rosenthal

I'm not clear what you are asking - sounds like a C++
question, not a LAMMPS question.