mirror of
https://github.com/TREX-CoE/fparser.git
synced 2024-11-03 12:43:58 +01:00
more cleanup
This commit is contained in:
parent
5edd886ef0
commit
b3434d6a34
@ -2,23 +2,13 @@
|
|||||||
FC = ifort
|
FC = ifort
|
||||||
FCFLAGS = -O2
|
FCFLAGS = -O2
|
||||||
|
|
||||||
LIBS = -L/home/neelravi/devel/libfdf-original/lib
|
LIBS = -L/usr/local/lib
|
||||||
INCLUDES = -I/home/neelravi/devel/libfdf-original/include
|
INCLUDES = -I/usr/local/include
|
||||||
|
|
||||||
LDFLAGS = -lfdf
|
LDFLAGS = /usr/local/lib/libfdf.a
|
||||||
|
|
||||||
SOURCE = iochamp.f90
|
SOURCE = iochamp.f90
|
||||||
OBJECTS = iochamp.o
|
MODULES = m_periodic_table.F90 m_keywords.F90
|
||||||
|
OBJECTS = m_periodic_table.o m_keywords.o
|
||||||
#default: parser
|
PROJECT = iochamp.o
|
||||||
|
|
||||||
|
|
||||||
#parser: $(OBJECTS)
|
|
||||||
# $(FC) -o parser $(OBJECTS)
|
|
||||||
|
|
||||||
#$(OBJECTS): $(SOURCE)
|
|
||||||
$(FC) $(FCFLAGS) $(SOURCE) $(LDFLAGS) $(LIBS) $(INCLUDES) -o $(OBJECTS)
|
|
||||||
|
|
||||||
#clean:
|
|
||||||
# $(RM) $(OBJECTS)
|
|
||||||
|
|
||||||
|
159
parser/README.md
159
parser/README.md
@ -1,159 +0,0 @@
|
|||||||
# Documentation for using the modern fortran parser
|
|
||||||
|
|
||||||
<!-- Thanks for visiting [The Markdown Guide](https://www.markdownguide.org)!
|
|
||||||
|
|
||||||
This Markdown cheat sheet provides a quick overview of all the Markdown syntax elements. It can’t cover every edge case, so if you need more information about any of these elements, refer to the reference guides for [basic syntax](https://www.markdownguide.org/basic-syntax) and [extended syntax](https://www.markdownguide.org/extended-syntax). -->
|
|
||||||
|
|
||||||
## 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
|
|
||||||
|
|
||||||
```perl
|
|
||||||
%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
|
|
||||||
|
|
||||||
```perl
|
|
||||||
%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
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### Link
|
|
||||||
|
|
||||||
[title](https://www.example.com)
|
|
||||||
|
|
||||||
### Image
|
|
||||||
|
|
||||||
![alt text](image.jpg)
|
|
||||||
|
|
||||||
## 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]
|
|
||||||
|
|
||||||
[^1]: This is the footnote.
|
|
||||||
|
|
||||||
### Heading ID
|
|
||||||
|
|
||||||
### My Great Heading {#custom-id}
|
|
||||||
|
|
||||||
### Definition List
|
|
||||||
|
|
||||||
term
|
|
||||||
: definition
|
|
||||||
|
|
||||||
### Strikethrough
|
|
||||||
|
|
||||||
~~The world is flat.~~
|
|
||||||
|
|
||||||
### Task List
|
|
||||||
|
|
||||||
- [x] Write the press release
|
|
||||||
- [ ] Update the website
|
|
||||||
- [ ] Contact the media
|
|
@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
ifort -c m_periodic_table.F90
|
FC=ifort
|
||||||
ifort -c m_keywords.F90
|
echo $FC
|
||||||
|
|
||||||
ifort iochamp.f90 m_keywords.o m_periodic_table.o /usr/local/lib/libfdf.a
|
$FC -c m_periodic_table.F90
|
||||||
|
$FC -c m_keywords.F90
|
||||||
|
|
||||||
|
$FC iochamp.f90 m_keywords.o m_periodic_table.o /usr/local/lib/libfdf.a
|
||||||
|
Loading…
Reference in New Issue
Block a user