MCPcopy Create free account
hub / github.com/AMReX-Astro/Castro / __init__

Method __init__

Source/driver/set_variables.py:66–75  ·  view source on GitHub ↗

name: the name of that counter (this will be used in Fortran)

(self, name, starting_val=1)

Source from the content-addressed store, hash-verified

64 set"""
65
66 def __init__(self, name, starting_val=1):
67 """name: the name of that counter (this will be used in Fortran)"""
68
69 self.name = name
70
71 self.numeric = starting_val
72
73 self.cxx_strings = []
74
75 self.cxx_starting_val = starting_val-1
76
77 def add_index(self, index):
78 """increment the counter"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected