Page 1 of 1

Matrix format

Posted: 22 Apr 2015, 16:12
by Coco
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

Re: Matrix format

Posted: 22 Apr 2015, 17:38
by raback
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

Re: Matrix format

Posted: 22 Apr 2015, 19:20
by Coco
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

Re: Matrix format

Posted: 23 Apr 2015, 01:17
by raback
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

Re: Matrix format

Posted: 23 Apr 2015, 04:44
by Coco
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