mirror of
https://github.com/TREX-CoE/fparser.git
synced 2025-01-05 02:49:03 +01:00
.. | ||
old | ||
pool | ||
benzene.xyz | ||
buckyball.xyz | ||
build.sh | ||
caffeine.xyz | ||
cas1010.sym | ||
global.inp | ||
iochamp.f90 | ||
jastrow_good_b3lyp.0 | ||
m_keywords.F90 | ||
m_periodic_table.F90 | ||
Makefile | ||
output | ||
README.md | ||
sample.det | ||
temp | ||
temp.fdf | ||
test-champ.inp | ||
test-champ.inp.backup | ||
test-champ.out | ||
trial_output | ||
trial.f90 | ||
TZ_1M_15k.det | ||
TZ_1M_15k.orb | ||
TZ_1M_500.det | ||
vmc.inp |
Documentation for using the modern fortran parser
Get the code
The parser uses a modified libfdf library. This is included in this repository as a submodule. To clone the project, do
git clone --recurse-submodules https://github.com/TREX-CoE/iof08.git
Compilation
Integrate parser in your code
Features of the parser (including inheritance from libfdf)
- Include another input file for parser to read using:
%include global.inp
- Include a data file for parser to read using:
load label filename
Here, depending upon the label, parser will provide the filename. For example,
load basis cc-pvtz.gbs
- Read molecular coordinates directly from the input file using
%block molecule
12
#benzene comment
0.00000 1.40272 0
C 0.00000 2.49029 0
H 1.21479 0.70136 0
C -2.15666 1.24515 0
H -1.21479 -0.70136 0
C -2.15666 -1.24515 0
H -0.00000 -1.40272 0
C 0.00000 -2.49029 0
H 1.21479 -0.70136 0
C 2.15666 -1.24515 0
H 1.21479 0.70136 0
C 2.15666 1.24515 0
H %endblock
- Read molecular coordinates from an external .xyz file using
%block molecule < caffeine.xyz
- Group certain keywords using the %module construct
%module DMC
0.04
tau = 15 Ha
etrial = -%endmodule
- Logical variables accept true, TRUE, T, 1, .true. as valid keywords
for true
optimize_wavefunction true
bold text
Italic
italicized text
Blockquote
blockquote
Ordered List
- First item
- Second item
- Third item
Unordered List
- First item
- Second item
- Third item
Code
code
Horizontal Rule
Link
Image
Extended Syntax
These elements extend the basic syntax by adding additional features. Not all Markdown applications support these elements.
Table
Syntax | Description |
---|---|
Header | Title |
Paragraph | Text |
Fenced Code Block
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
Footnote
Here’s a sentence with a footnote. 1
Heading ID
My Great Heading
Definition List
- term
- definition
Strikethrough
The world is flat.
Task List
- Write the press release
- Update the website
- Contact the media
This is the footnote.↩︎