# Location of computational points

**URL:** <https://community.freefem.org/t/location-of-computational-points/1271>\
**Category:** General Discussion\
**Created:** [October 21, 2021, 2:10pm UTC](https://community.freefem.org/t/location-of-computational-points/1271 "2021-10-21T14:10:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![distractor](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@distractor](https://community.freefem.org/u/distractor)\
**Post date:** [October 21, 2021, 2:10pm UTC](https://community.freefem.org/t/location-of-computational-points/1271/1 "2021-10-21T14:10:21Z")

</div>

Hi,

Is it possible to get the locations of the computational points?

For example if a mesh has `Th.nv = 1000` points and I am using `P2` elements, there are more computational points than mesh vertices. But is there a way to get the locations of computational points?

Thank you!

---

<div class="post-metadata">

**Author:** ![zhaog6](https://avatars.discourse-cdn.com/v4/letter/z/4af34b/32.png) [@zhaog6](https://community.freefem.org/u/zhaog6)\
**Post date:** [October 22, 2021, 6:56am UTC](https://community.freefem.org/t/location-of-computational-points/1271/2 "2021-10-22T06:56:53Z")

</div>

For example,

```auto
fespace Vh(Th, P2);
Vh xh = x, yh = y;
for (int j = 0; j < Vh.ndof; ++j) {
    cout << "(" << xh[][j] << ", " << yh[][j] << ")" << endl;
}

```

OR

```auto
fespace Vh(Th, [P2, P2])
Vh [xh, yh] = [x, y];
for (int j = 0; j < Vh.ndof; ++j) {
    int I = 2 * j;
    int J = I + 1;
    cout << "(" << xh[][I] << ", " << xh[][J] << ")" << endl;
}

```

---

<div class="post-metadata">

**Author:** ![distractor](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@distractor](https://community.freefem.org/u/distractor)\
**Post date:** [October 22, 2021, 7:18am UTC](https://community.freefem.org/t/location-of-computational-points/1271/3 "2021-10-22T07:18:03Z")

</div>

Exactly what I needed. Thank you!
