Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzovarese committed Jul 11, 2024
1 parent 8420fe9 commit b1cda4d
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions test/gt2py_fo_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ macro to_py(expr::Expr)
return res
end

# ========================================
# ============== Utility =================
# ========================================
# Utility ----------------------------------------------------------------------------------------------------

struct ConnectivityData
edge_to_cell_table::Matrix{Integer}
Expand Down Expand Up @@ -86,11 +84,9 @@ function testwrapper(setupfunc::Union{Function,Nothing}, testfunc::Function, arg
end
end

# ========================================
# ============== Setup ===================
# ========================================
# Setup ------------------------------------------------------------------------------------------------------

function setup_simple_connectivity()
function setup_simple_connectivity()::ConnectivityData
edge_to_cell_table = [
[1 -1];
[3 -1];
Expand Down Expand Up @@ -127,9 +123,7 @@ function setup_simple_connectivity()
return ConnectivityData(edge_to_cell_table, cell_to_edge_table, E2C_offset_provider, C2E_offset_provider, offset_provider)
end

# ========================================
# ========= Test Definitions =============
# ========================================
# Test Definitions -------------------------------------------------------------------------------------------

function test_fo_addition(backend::String)
a = Field(Cell, collect(1.0:15.0))
Expand Down Expand Up @@ -381,9 +375,7 @@ function test_nested_fo(backend::String)
@test out.data == expected_output
end

# ========================================
# ========== Test Executions =============
# ========================================
# Test Executions --------------------------------------------------------------------------------------------

function test_gt4py_fo_exec()
testwrapper(nothing, test_fo_addition, "embedded")
Expand Down

0 comments on commit b1cda4d

Please sign in to comment.