Matrix format

Numerical methods and mathematical models of Elmer
Post Reply
Coco
Posts: 16
Joined: 01 Apr 2015, 09:01
Antispam: Yes

Matrix format

Post by Coco » 22 Apr 2015, 16:12

Hi,

Can i choose the format of matrix by setting in the .sif?

In the code,i can set the format by Matrix%format=1,2,3,4,right?

But if there is no Matrix%format in my own code, the default format is CRS?

Where can i find the default set?

Thanks,
Coco

raback
Site Admin
Posts: 3697
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Matrix format

Post by raback » 22 Apr 2015, 17:38

Hi Coco,

Currently supported formats are "List" and "CRS". Historically there was also "banded" but it had very little use so it is not much supported in the code. Also List is something that is mainly used internally to allow for flexible creation of the matrix topologies. Hence for most practical uses CRS is the only format to consider.

What kind of format would you need?

-Peter

Coco
Posts: 16
Joined: 01 Apr 2015, 09:01
Antispam: Yes

Re: Matrix format

Post by Coco » 22 Apr 2015, 19:20

Hi Peter,

Maybe i need CRS

I have no idea of List format of matrix

I want to know which format does shellsolver.f90 use.

By the way,I want to ask another question

When i declare a type Variable_t:: qq,there is a pointer qq%value.

I want to know where the target is. I think the pointer is point to the value of variable.

But i can't find the memory allocation.

Thanks,
Coco

raback
Site Admin
Posts: 3697
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Matrix format

Post by raback » 23 Apr 2015, 01:17

Hi

All matrices are in CRS format when they go for solution. However, you should not need to think about the format unless you're developing something rather advanced.

Variable_t is a type that you may find defined in Types.F90

-Peter

Coco
Posts: 16
Joined: 01 Apr 2015, 09:01
Antispam: Yes

Re: Matrix format

Post by Coco » 23 Apr 2015, 04:44

Hi,

I need to calculate the famula,like total=a1+a2+a3+...+an

So i need to define two variables: total and a.

right?

Coco

Post Reply