-
-
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 #23 from davidpfister/master
Speedup, variables length > 1, addition of functions, removal of Destruct...
- Loading branch information
Showing
185 changed files
with
2,667 additions
and
3,261 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
*.mod | ||
build/ | ||
.DS_Store | ||
*.i90 |
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,7 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [] | ||
} |
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
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 |
---|---|---|
@@ -1,31 +1,28 @@ | ||
program gaussian_scalar_multivar | ||
|
||
use iso_fortran_env | ||
use FEQParse | ||
|
||
implicit none | ||
type(EquationParser) :: f | ||
character(LEN=1),dimension(2) :: independentVars | ||
character(LEN=30) :: eqChar | ||
real :: x(2) | ||
|
||
! Specify the independent variables | ||
independentVars = (/'x', 'a'/) | ||
|
||
! Specify an equation string that we want to evaluate | ||
eqChar = 'f = \exp( -(x^2) ) - a' | ||
! eqChar = 'f = \exp( -(x^2) - a )' | ||
eqChar = 'f = exp( -(x^2) ) - a' | ||
! eqChar = 'f = exp( -(x^2) - a )' | ||
! eqChar = 'f = (x - a)^2 )' | ||
|
||
! Create the EquationParser object | ||
f = EquationParser(eqChar,independentVars) | ||
|
||
! Evaluate the equation | ||
x(1) = 1.0 | ||
x(2) = 1.0 | ||
print*, f % evaluate(x) | ||
print*, exp(-1.0) -1.0 | ||
|
||
! Clean up memory | ||
call f % Destruct() | ||
|
||
|
||
end program gaussian_scalar_multivar |
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
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,46 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "." | ||
} | ||
], | ||
"settings": { | ||
"files.exclude": { | ||
"**/.gitignore": true, | ||
"**/site/": true, | ||
"**/.vscode": true, | ||
"**/.vs": true, | ||
"**/*.code-workspace": true, | ||
"**/build": true, | ||
"**/*.i90": true, | ||
"**/*.ud2": true, | ||
"**/*.mod": true, | ||
"**/bin/": true, | ||
"**/obj/": true, | ||
}, | ||
"code-runner.defaultLanguage": "fortran", | ||
"cSpell.words": [], | ||
"terminal.integrated.profiles.windows": { | ||
"MYSYS": { | ||
"path": "C:\\msys64\\usr\\bin\\bash.exe", | ||
"args": [ | ||
"--login", | ||
"-i" | ||
] | ||
} | ||
}, | ||
"terminal.integrated.env.windows": { | ||
"CHERE_INVOKING": "1", | ||
"MSYSTEM": "MINGW64", | ||
"PATH": "${env:PATH}" | ||
}, | ||
"fortran.linter.compilerPath": "C:/Program Files (x86)/Intel/oneAPI/compiler/2022.0.3/windows/bin/intel64/ifort.exe", | ||
"fortran.linter.compiler": "ifort", | ||
"fortran.linter.extraArgs": [ | ||
"-warn all,noexternal", | ||
"-warn truncated_source" | ||
], | ||
"fortran.formatting.formatter": "fprettify", | ||
"fortran.preferredCase": "uppercase" | ||
} | ||
} |
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.