Feb 10, 2014 at 2:59am UTC
I'm getting this error, illegal, left & right operand has type 'double *'
double temp1,val=0.0;
int count=0;
double _k,phi,delP,b,miu,h,Pw,Pi,rw,ri,ct,t_final,integral=0,increment=0,t=0,inc=0.1,pi=3.14;
h=1;q=1;phi=0.1;rw=0.25;ct=0.00001;Pi=5000;
double result;
double tmp;
vector<double> t_;
vector<double> Vp;
sort(my.begin(), my.end());
vector<double> Area;
int jj=0;
//write in to gird.txt
for(i=0;i<npixels;i++)
{
if(val<my.at(i))
{
ERROR>>>> grid<<my.at(i-1)<<" --> "<<(dx*dy*dz*phi*(count-1))<<endl;
//grid<<my.at(i-1)<<" --> "<<1000*(count-1)<<endl;
//cout<<my.at(i-1)<<" --> "<<count-1<<endl;
t_final=my.at(i-1)*my.at(i-1)/4;
//t_final=Tau/c , c=2,4,6
//ri=sqrt(_k*t_final*24/(948*ct*miu));
val=my.at(i);
ERROR>>>> Area.push_back(dx*dy*dz*phi*(count-1));
tmp=phi*Area[jj]*h;
Vp.push_back(tmp);
tmp=my.at(i-1);
tmp=0.25*(pow(tmp,2));
t_.push_back(tmp);
// cout<<"Here "<<Area[jj]<<endl;
jj+=1;
}
count++;
}
grid<<my.at(i-1)<<" --> "<<count<<endl;
cout<<my.at(i-1)<<" --> "<<count<<endl;
t_final=my.at(i-1)*my.at(i-1)/4;
//ri=sqrt(_k*t_final*24/(948*ct*miu));
Put the code you need help with here.
[/code]