Skip to content

Commit

Permalink
Add "test" (idaholab#8619)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwen committed Feb 23, 2017
1 parent 613dd13 commit 021bca6
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 0 deletions.
86 changes: 86 additions & 0 deletions test/tests/postprocessors/memory_usage/print_memory_usage.i
@@ -0,0 +1,86 @@
[Mesh]
type = GeneratedMesh
dim = 2
nx = 2
ny = 2
[]

[Variables]
[./u]
[../]
[]

[Kernels]
[./diff]
type = Diffusion
variable = u
[../]
[./dt]
type = TimeDerivative
variable = u
[../]
[]

[BCs]
[./left]
type = DirichletBC
variable = u
boundary = left
value = 0
[../]
[./right]
type = DirichletBC
variable = u
boundary = right
value = 1
[../]
[]

[Adaptivity]
[./Markers]
[./uni]
type = UniformMarker
mark = REFINE
[../]
[../]
marker = uni
[]

[Postprocessors]
[./physical]
type = MemoryUsage
mem_type = physical_memory
value_type = total
[../]
[./virtual]
type = MemoryUsage
mem_type = virtual_memory
value_type = total
[../]
[./page_faults]
type = MemoryUsage
mem_type = page_faults
value_type = total
[../]
[./DOFs]
type = NumDOFs
[../]
[]

[Executioner]
type = Transient

# Preconditioned JFNK (default)
solve_type = 'PJFNK'

petsc_options_iname = '-pc_type -pc_hypre_type'
petsc_options_value = 'hypre boomeramg'

num_steps = 5
dt = 1
[]

[Outputs]
csv = true
print_perf_log = true
[]
7 changes: 7 additions & 0 deletions test/tests/postprocessors/memory_usage/tests
@@ -0,0 +1,7 @@
[Tests]
[./print_memory_usage]
type = CheckFiles
input = print_memory_usage.i
check_files = print_memory_usage_out.csv
[../]
[]

0 comments on commit 021bca6

Please sign in to comment.