ETS
\$Id: Doxyfile 2162 2020-02-26 14:16:09Z g2dpc $
Main Page
Data Types List
Files
File List
File Members
All
Classes
Files
Functions
Variables
Pages
fortranparser_test.f90
Go to the documentation of this file.
1
program
fortranparser_test
2
3
use
fortranparser
, only
: equationparser
4
5
implicit none
6
7
type(
equationparser
)
:: eqparser
8
character(len=100)
:: stringequation
9
character(len=10)
:: variables(1)
10
integer
:: i
11
12
real(selected_real_kind(p=6,r=37))
:: varvalues(1)
13
14
stringequation =
'x**2'
15
variables = [
'x'
]
16
17
eqparser = equationparser(stringequation, variables)
18
19
do
i = 1, 100
20
varvalues = i
21
write
(*,*) varvalues, eqparser%evaluate(varvalues)
22
enddo
23
24
end program
fortranparser_test
fortranparser
Definition:
fortranparser.f90:7
fortranparser_test
program fortranparser_test
Definition:
fortranparser_test.f90:1
src
test
fortranparser_test.f90
Generated on Thu Feb 27 2020 09:02:19 for ETS by
1.8.5