Skip to content

Commit 344fb8c

Browse files
committed
Update README of cpp-api
1 parent 12cf08e commit 344fb8c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

example/cpp-api/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Build the program
55
```
66
mkdir build
77
cd build
8-
cmake .. -DFMM_LIB -DFMM_HEADER
8+
cmake ..
99
make
1010
sudo make install
1111
```
@@ -15,3 +15,16 @@ Run it with
1515
```
1616
fmm_print_network example/data/edges.shp
1717
```
18+
19+
You should see output like
20+
21+
```
22+
[2020-12-04 13:50:29.350] [info] [main.cpp:9] Use FMM in an external project
23+
[2020-12-04 13:50:29.350] [info] [main.cpp:14] Network file example/data/edges.shp
24+
[2020-12-04 13:50:29.351] [info] [network.cpp:72] Read network from file example/data/edges.shp
25+
[2020-12-04 13:50:29.356] [info] [network.cpp:166] Number of edges 30 nodes 17
26+
[2020-12-04 13:50:29.356] [info] [network.cpp:168] Field index: id 1 source 2 target 3
27+
[2020-12-04 13:50:29.356] [info] [network.cpp:170] Read network done.
28+
[2020-12-04 13:50:29.356] [info] [main.cpp:16] Network node count 17
29+
[2020-12-04 13:50:29.356] [info] [main.cpp:17] Network edge count 30
30+
```

0 commit comments

Comments
 (0)