-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from FluidNumerics/feature/multidimension_array
[WIP] Feature/multidimension array - Rank 2 - Rank 4 support
- Loading branch information
Showing
178 changed files
with
10,967 additions
and
3,123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
program scalar_function_product | ||
|
||
use FEQParse | ||
|
||
implicit none | ||
type(EquationParser) :: f | ||
character(LEN=1),dimension(2) :: independentVars | ||
character(LEN=2048) :: eqChar | ||
real :: x(2) | ||
real :: feval | ||
|
||
! Specify the independent variables | ||
independentVars = (/'x', 'y'/) | ||
|
||
! Specify an equation string that we want to evaluate | ||
eqChar = 'f = \cos( 2.0*pi*x )*\cos( 2.0*pi*y )' | ||
|
||
! Create the EquationParser object | ||
f = EquationParser(eqChar,independentVars) | ||
|
||
! Evaluate the equation | ||
x = 0.5 | ||
feval = f % evaluate(x) | ||
print*, feval | ||
|
||
! Clean up memory | ||
call f % Destruct() | ||
|
||
end program scalar_function_product |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.