Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskaus committed Feb 11, 2024
1 parent ab7f3db commit 61252e3
Show file tree
Hide file tree
Showing 5 changed files with 585 additions and 6 deletions.
1 change: 0 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ GeoParams = "e018b62d-d9de-4a26-8697-af89c310ae38"
GeophysicalModelGenerator = "3700c31b-fa53-48a6-808a-ef22d5a84742"
Glob = "c27321d9-0574-5035-807b-f59d2c89b15c"
LaMEM_jll = "15d6fa20-f789-5486-b71b-22b4ac8eb1c1"
MarkdownTables = "1862ce21-31c7-451e-824c-f20fa3f90fa2"
ReadVTK = "dc215faf-f008-4882-a9f7-a79a826fadc3"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Expand Down
10 changes: 5 additions & 5 deletions src/utils_Run.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
export remove_popup_messages_mac, show_paths_LaMEM, read_LaMEM_logfile
using MarkdownTables


"""
remove_popup_messages_mac()
Expand Down Expand Up @@ -108,17 +106,19 @@ function read_LaMEM_logfile(Filename::String; ID=nothing, header=true)
#Memory_Gb = extract_info_logfile(lines_mem, "Memory Utilized:", LaMEM=false, entry=5)

Nodes = Int64(extract_info_logfile(lines_mem, "Nodes:", LaMEM=false, entry=1))
MemNode_Gb = Memory_Gb/Nodes
else
Memory_Gb = "-"
Nodes = "-"
MemNode_Gb = "-"
end
MemNode_Gb = Memory_Gb/Nodes


# print as Markdown table
table = (; FineGrid, Cores, Nodes, CoarseGrid, CoaCores, Levels, SNES, KSP, TotalTime, CoarseTime, MemNode_Gb, Filename)
print_table_markdown(table, header=header)

return lines
return nothing
end


Expand Down
Loading

0 comments on commit 61252e3

Please sign in to comment.