Skip to content

Commit c9ffb6d

Browse files
committed
readme + version number
1 parent c8dd469 commit c9ffb6d

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ are automatically printed). `nf_retry` can be enabled and configured by creating
2222

2323
### Implementing nf_retry
2424

25-
Use the `nf_retry` module and replace `nf90_open` calls with `nf90_open_with_retries`.
25+
Copy `nf_retry.f90` into your source code and add include it in your build.
26+
27+
Include the `nf_retry` module and replace `nf90_open` calls with `nf90_open_with_retries`.
2628

2729
```diff
2830
+ use nf_retry
2931
...
3032
- status = nf90_open(path, mode, ncid)
3133
+ status = nf90_open_with_retries(path, mode, ncid)
3234
```
33-
34-
Make sure to add `nf_retry.f90` to you build.

nf_retry.f90

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
! nf90_open_with_retries
2+
! VERSION 1.0.0
3+
! REPOSITORY https://github.com/LiamBindle/nf90_open_with_retries
4+
15
module nf_retry
26
use netcdf
37
implicit none

nf_retry.nml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
&nf_retry
22
nf_retry_wait=1, ! Seconds to wait before retry
33
nf_retry_max_tries=3, ! Max number of retries before failure
4-
nf_retry_catch=0,1,2,3, ! NetCDF error codes to catch
4+
nf_retry_catch=0,1,3,2 ! NetCDF error codes to catch
55
nf_retry_catch_all=F, ! Catch all NetCDF errors?
66
/

0 commit comments

Comments
 (0)