1
0
mirror of https://github.com/TREX-CoE/fparser.git synced 2024-07-22 10:47:46 +02:00
fparser/parser
Ravindra Shinde 69496b3bb6 clean up
2021-03-25 16:33:48 +01:00
..
old clean up 2021-03-25 16:33:48 +01:00
pool clean up 2021-03-25 16:33:48 +01:00
benzene.xyz clean up 2021-03-25 16:33:48 +01:00
buckyball.xyz clean up 2021-03-25 16:33:48 +01:00
build.sh clean up 2021-03-25 16:33:48 +01:00
caffeine.xyz clean up 2021-03-25 16:33:48 +01:00
cas1010.sym clean up 2021-03-25 16:33:48 +01:00
global.inp clean up 2021-03-25 16:33:48 +01:00
iochamp.f90 clean up 2021-03-25 16:33:48 +01:00
jastrow_good_b3lyp.0 clean up 2021-03-25 16:33:48 +01:00
m_keywords.F90 clean up 2021-03-25 16:33:48 +01:00
m_periodic_table.F90 clean up 2021-03-25 16:33:48 +01:00
Makefile clean up 2021-03-25 16:33:48 +01:00
output clean up 2021-03-25 16:33:48 +01:00
README.md clean up 2021-03-25 16:33:48 +01:00
sample.det clean up 2021-03-25 16:33:48 +01:00
temp clean up 2021-03-25 16:33:48 +01:00
temp.fdf clean up 2021-03-25 16:33:48 +01:00
test-champ.inp clean up 2021-03-25 16:33:48 +01:00
test-champ.inp.backup clean up 2021-03-25 16:33:48 +01:00
test-champ.out clean up 2021-03-25 16:33:48 +01:00
trial_output clean up 2021-03-25 16:33:48 +01:00
trial.f90 clean up 2021-03-25 16:33:48 +01:00
TZ_1M_15k.det clean up 2021-03-25 16:33:48 +01:00
TZ_1M_15k.orb clean up 2021-03-25 16:33:48 +01:00
TZ_1M_500.det clean up 2021-03-25 16:33:48 +01:00
vmc.inp clean up 2021-03-25 16:33:48 +01:00

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
 C    0.00000    1.40272  0
 H    0.00000    2.49029  0
 C   -1.21479    0.70136  0
 H   -2.15666    1.24515  0
 C   -1.21479   -0.70136  0
 H   -2.15666   -1.24515  0
 C    0.00000   -1.40272  0
 H    0.00000   -2.49029  0
 C    1.21479   -0.70136  0
 H    2.15666   -1.24515  0
 C    1.21479    0.70136  0
 H    2.15666    1.24515  0
%endblock
  • Read molecular coordinates from an external .xyz file using

%block molecule < caffeine.xyz

  • Group certain keywords using the %module construct
%module DMC
    tau     =   0.04
    etrial  = -15 Ha
%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

  1. First item
  2. Second item
  3. Third item

Unordered List

  • First item
  • Second item
  • Third item

Code

code

Horizontal Rule


title

Image

alt text

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

Heres 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

  1. This is the footnote.↩︎