Skip to content

Commit

Permalink
Update README of cpp-api
Browse files Browse the repository at this point in the history
  • Loading branch information
cyang-kth committed Dec 4, 2020
1 parent 12cf08e commit 344fb8c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion example/cpp-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Build the program
```
mkdir build
cd build
cmake .. -DFMM_LIB -DFMM_HEADER
cmake ..
make
sudo make install
```
Expand All @@ -15,3 +15,16 @@ Run it with
```
fmm_print_network example/data/edges.shp
```

You should see output like

```
[2020-12-04 13:50:29.350] [info] [main.cpp:9] Use FMM in an external project
[2020-12-04 13:50:29.350] [info] [main.cpp:14] Network file example/data/edges.shp
[2020-12-04 13:50:29.351] [info] [network.cpp:72] Read network from file example/data/edges.shp
[2020-12-04 13:50:29.356] [info] [network.cpp:166] Number of edges 30 nodes 17
[2020-12-04 13:50:29.356] [info] [network.cpp:168] Field index: id 1 source 2 target 3
[2020-12-04 13:50:29.356] [info] [network.cpp:170] Read network done.
[2020-12-04 13:50:29.356] [info] [main.cpp:16] Network node count 17
[2020-12-04 13:50:29.356] [info] [main.cpp:17] Network edge count 30
```

0 comments on commit 344fb8c

Please sign in to comment.