Skip to content

Commit

Permalink
Improve docs and exports
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Jan 29, 2024
1 parent 014e111 commit 41740e7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
13 changes: 13 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,24 @@ CurrentModule = GeoEnergyIO

Documentation for [GeoEnergyIO](https://github.com/sintefmath/GeoEnergyIO.jl).

## Parsing of simulation cases

```@docs
parse_data_file
```

## Parsing and processing of corner-point grids

```@docs
parse_grdecl_file
mesh_from_grid_section
```

## Utilities

```@docs
get_data_file_cell_region
number_of_tables
```

```@index
Expand Down
3 changes: 2 additions & 1 deletion src/GeoEnergyIO.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ module GeoEnergyIO
export parse_grdecl_file
export mesh_from_grid_section
export get_data_file_cell_region
export number_of_tables

include("InputParser/InputParser.jl")
import .InputParser: parse_data_file, parse_grdecl_file, get_data_file_cell_region
import .InputParser: parse_data_file, parse_grdecl_file, get_data_file_cell_region, number_of_tables

include("CornerPointGrid/CornerPointGrid.jl")
import .CornerPointGrid: mesh_from_grid_section
Expand Down
5 changes: 5 additions & 0 deletions src/InputParser/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,11 @@ function next_keyword!(f)
return m
end

"""
number_of_tables(outer_data, t::Symbol)
Number of tables for given type `t`: one of `:satnum`, `:pvtnum` or `:eqlnum`.
"""
function number_of_tables(outer_data, t::Symbol)
rs = outer_data["RUNSPEC"]
if haskey(rs, "TABDIMS")
Expand Down

0 comments on commit 41740e7

Please sign in to comment.