aboutsummaryrefslogtreecommitdiff
path: root/src/elliptic/Jacobian.cc
blob: 1bd2b5b4475cd572b0177eb3f023947fcd9afcb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Jacobian.cc -- data structures for the Jacobian matrix
// $Id$

//
// Jacobian::Jacobian
//
// dense_Jacobian::dense_Jacobian
// dense_Jacobian::zero
// dense_Jacobian::zero_row
//

#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <vector>

#include "util_Table.h"
#include "cctk.h"
#include "cctk_Arguments.h"

#include "stdc.h"
#include "config.hh"
#include "../jtutil/util.hh"
#include "../jtutil/array.hh"
#include "../jtutil/cpm_map.hh"
#include "../jtutil/linear_map.hh"
using jtutil::error_exit;

#include "coords.hh"
#include "grid.hh"
#include "fd_grid.hh"
#include "patch.hh"
#include "patch_edge.hh"
#include "patch_interp.hh"
#include "ghost_zone.hh"
#include "patch_system.hh"
#include "Jacobian.hh"

//******************************************************************************
//******************************************************************************
//******************************************************************************

//
// This function constructs a  Jacobian  object.
//
Jacobian::Jacobian(const patch_system& ps)
	: ps_(ps)
{ }

//******************************************************************************
//******************************************************************************
//******************************************************************************

//
// This function constructs a  dense_Jacobian  object.
//
dense_Jacobian::dense_Jacobian(const patch_system& ps)
	: Jacobian(ps),
	  matrix_(0, ps.N_grid_points(),
		  0, ps.N_grid_points())
{ }

//******************************************************************************

//
// This function zeros a  dense_Jacobian  object.
//
void dense_Jacobian::zero()
{
// FIXME FIXME
}

//******************************************************************************

//
// This function zeros a single row of a  dense_Jacobian  object.
//
void dense_Jacobian::zero_row(int II)
{
// FIXME FIXME
}