I have calculated some corections but now I have problem to add them to original values.
rewind(5)
do i=2,nc
read(5,*)icd,res(icd),ivar(icd)
if(ivar(icd).ne.0)then
ivarprd=ivarprd+1
ivarp(ivarprd)=icd
endif
I want to add 21 real values to res(icd)
res(icd)=res(icd)+cor(icd)
But it is not working.
icd-number of cell
res-resistivity of the cell
ivar-1 or 0
nc=58
How to tell computer to do this operation?
rewind(5)
do i=2,nc
read(5,*)icd,res(icd),ivar(icd)
if(ivar(icd).ne.0)then
ivarprd=ivarprd+1
ivarp(ivarprd)=icd
endif
I want to add 21 real values to res(icd)
res(icd)=res(icd)+cor(icd)
But it is not working.
icd-number of cell
res-resistivity of the cell
ivar-1 or 0
nc=58
How to tell computer to do this operation?