Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Troubled Cell Detection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Laura Christine Kühle
Troubled Cell Detection
Commits
cd48a83e
Commit
cd48a83e
authored
3 years ago
by
Laura Christine Kühle
Browse files
Options
Downloads
Patches
Plain Diff
Renamed 'Vector' to 'Basis'.
parent
cb503a5d
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Basis_Function.py
+2
-2
2 additions, 2 deletions
Basis_Function.py
Plotting.py
+3
-3
3 additions, 3 deletions
Plotting.py
with
5 additions
and
5 deletions
Basis_Function.py
+
2
−
2
View file @
cd48a83e
...
...
@@ -13,7 +13,7 @@ x = Symbol('x')
z
=
Symbol
(
'
z
'
)
class
Vector
:
class
Basis
:
"""
Class for basis vector.
Attributes
...
...
@@ -117,7 +117,7 @@ class Vector:
pass
class
Legendre
(
Vector
):
class
Legendre
(
Basis
):
"""
Class for Legendre basis.
"""
def
_build_basis_vector
(
self
,
eval_point
):
"""
Constructs basis vector.
...
...
This diff is collapsed.
Click to expand it.
Plotting.py
+
3
−
3
View file @
cd48a83e
...
...
@@ -18,7 +18,7 @@ from sympy import Symbol
from
Quadrature
import
Quadrature
from
Initial_Condition
import
InitialCondition
from
Basis_Function
import
Vector
from
Basis_Function
import
Basis
from
projection_utils
import
calculate_exact_solution
,
\
calculate_approximate_solution
from
encoding_utils
import
decode_ndarray
...
...
@@ -322,7 +322,7 @@ def plot_evaluation_results(evaluation_file: str, directory: str,
def
plot_approximation_results
(
data_file
:
str
,
directory
:
str
,
plot_name
:
str
,
basis
:
Vector
,
quadrature
:
Quadrature
,
basis
:
Basis
,
quadrature
:
Quadrature
,
init_cond
:
InitialCondition
)
->
None
:
"""
Plots given approximation results.
...
...
@@ -376,7 +376,7 @@ def plot_approximation_results(data_file: str, directory: str, plot_name: str,
def
plot_results
(
projection
:
ndarray
,
troubled_cell_history
:
list
,
time_history
:
list
,
mesh
:
ndarray
,
num_grid_cells
:
int
,
polynomial_degree
:
int
,
wave_speed
:
float
,
final_time
:
float
,
left_bound
:
float
,
right_bound
:
float
,
basis
:
Vector
,
left_bound
:
float
,
right_bound
:
float
,
basis
:
Basis
,
quadrature
:
Quadrature
,
init_cond
:
InitialCondition
,
colors
:
dict
=
None
,
coarse_projection
:
ndarray
=
None
,
multiwavelet_coeffs
:
ndarray
=
None
)
->
None
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment