Dear friends
I'm using a code, which reads some parameters from an external file (unit=100); These parameters are inserted into an expression (or equation) and the result of the expression tells to the code how it proceed.
I'd like to be able to change the expression without change the source, I'd like to be able to edit this expression on an input file
Let me axplain better
As is shown in this short code, I define idon by idon=a*c^2
I'd like to be able to insert the idon expression into a file, in this way I might to use different expressions, to calculate idon, just changing the file and without the need to change the soure.
Have you some suggestions?
I'm afraid it is not so easy becouse in some way i have to be able to identify simbols with operators and others tricks
Hi, Albi73
I'm using a code, which reads some parameters from an external file (unit=100); These parameters are inserted into an expression (or equation) and the result of the expression tells to the code how it proceed.
I'd like to be able to change the expression without change the source, I'd like to be able to edit this expression on an input file
Let me axplain better
Code:
do i=1,N_record
read(100,*) a,b,c,d,e
idon=(a*c^2)/e
end do
As is shown in this short code, I define idon by idon=a*c^2
I'd like to be able to insert the idon expression into a file, in this way I might to use different expressions, to calculate idon, just changing the file and without the need to change the soure.
Have you some suggestions?
I'm afraid it is not so easy becouse in some way i have to be able to identify simbols with operators and others tricks
Hi, Albi73