Skip to content

Commit 1f89ce6

Browse files
Merge pull request #13 from jacobwilliams/develop
Develop
2 parents fdecbc8 + 2bacf5a commit 1f89ce6

File tree

8 files changed

+1088
-468
lines changed

8 files changed

+1088
-468
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,7 @@
3434
/bin
3535

3636
# misc
37-
.DS_Store
37+
.DS_Store
38+
39+
/*.pdf
40+
/*.dot

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
### Overview
55

6+
[![Language](https://img.shields.io/badge/-Fortran-734f96?logo=fortran&logoColor=white)](https://github.com/topics/fortran)
67
![Build Status](https://github.com/jacobwilliams/daglib/actions/workflows/CI.yml/badge.svg)
8+
[![GitHub release](https://img.shields.io/github/release/jacobwilliams/daglib.svg)](https://github.com/jacobwilliams/daglib/releases/latest)
79

810
DAGLIB is a modern Fortran module for creating and manipulating directed acyclic graphs (DAGs). It includes a toposort feature, and also the ability to generate files in the [GraphViz](https://www.graphviz.org) "dot" notation.
911

@@ -16,6 +18,21 @@ fpm build --profile release
1618
fpm test --profile release
1719
```
1820

21+
By default, the library is built with single precision (`int32`) integer values. Explicitly specifying the integer kind can be done using the following processor flag:
22+
23+
Preprocessor flag | Kind | Number of bytes
24+
----------------- | ----- | ---------------
25+
`INT8` | `integer(kind=int8)` | 1
26+
`INT16` | `integer(kind=int16)` | 2
27+
`INT32` | `integer(kind=int32)` | 4
28+
`INT64` | `integer(kind=int64)` | 8
29+
30+
For example, to build a long integer version of the library:
31+
32+
```
33+
fpm build --profile release --flag "-DINT64"
34+
```
35+
1936
### Example
2037

2138
A simple example is shown below:

fpm.toml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,12 @@ homepage = "https://github.com/jacobwilliams/daglib"
77
keywords = ["graph theory", "graphviz", "DAG"]
88

99
[build]
10-
auto-executables = false
11-
auto-examples = false
12-
auto-tests = false
10+
auto-executables = true
11+
auto-examples = true
12+
auto-tests = true
1313

1414
[library]
1515
source-dir = "src"
1616

1717
[install]
1818
library = true
19-
20-
[[test]]
21-
name = "dag_example"
22-
source-dir = "tests"
23-
main = "dag_example.f90"

0 commit comments

Comments
 (0)