# Array of vectorial fespace function

**URL:** https://community.freefem.org/t/array-of-vectorial-fespace-function/3222
**Category:** General Discussion
**Created:** [May 5, 2024, 6:18am UTC](https://community.freefem.org/t/array-of-vectorial-fespace-function/3222 "2024-05-05T06:18:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![clthu](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@clthu](https://community.freefem.org/u/clthu)
#### Post date: [May 5, 2024, 6:18am UTC](https://community.freefem.org/t/array-of-vectorial-fespace-function/3222/1 "2024-05-05T06:18:26Z")

</div>

Dear all,

I am trying to make an array of vectorial fespace funciton like this:

```
 macro defU(u) [u#x,u#y,u#z];
 XXXh defU(uq1);
 XXXh[int] defU(uq)(10);

```

and after solving the uq1, I want to restore uq1 to the first array in uq:

```
uq(0) = uq1;

```

But FreeFem 4.14 tells me that the array size is wrong and could not be compiled.

Is there any other way to make this?

Thanks a lot~

---

<div class="post-metadata">

### Author: ![clthu](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@clthu](https://community.freefem.org/u/clthu)
#### Post date: [May 5, 2024, 6:37am UTC](https://community.freefem.org/t/array-of-vectorial-fespace-function/3222/2 "2024-05-05T06:37:32Z")

</div>

Now I use a matrix to store the data, but I think there might be a better way?

```
 real[int,int] uq(uq1x[].n, norder)
 uq(0:uq1x[].n-1,0) = uq1x[];

```
