Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.a
*.mod
*.o
client
server
libdill
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ client: client.f90 $(OBJS)
server: server.f90 $(OBJS)
$(FC) $(FCFLAGS) $< -o $@ libdill.a -pthread

libdill-2.14:
curl http://libdill.org/libdill-2.14.tar.gz | tar xz
libdill:
git clone https://github.com/sustrik/libdill

libdill.a: libdill-2.14
cd libdill-2.14 && ./configure && make && cp .libs/libdill.a ..
libdill.a: libdill
cd libdill && ./autogen.sh && ./configure && $(MAKE) && cp .libs/libdill.a ..

.f90.o:
$(FC) $(FCFLAGS) -c $<
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ Companion code for Chapter 11 of [Modern Fortran: Building Efficient Parallel Ap

It uses [libdill](http://libdill.org) as a sockets library.

Please note that the install instructions from the book (downloading
libdill-2.14) do not work with gfortran v9.x or later.
The download and install procedure for libdill has been updated in this repo
to allow building with the latest versions of gfortran.

## Getting started

Download and build the code:
Expand Down