# Gradients in 1D kernels

**URL:** <https://pyfr.discourse.group/t/gradients-in-1d-kernels/1109>\
**Category:** Development\
**Created:** [11 June 2024 13:02 UTC](https://pyfr.discourse.group/t/gradients-in-1d-kernels/1109 "2024-06-11T13:02:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frankx9](https://avatars.discourse-cdn.com/v4/letter/f/3e96dc/32.png) [@Frankx9](https://pyfr.discourse.group/u/Frankx9)\
**Post date:** [11 June 2024 13:02 UTC](https://pyfr.discourse.group/t/gradients-in-1d-kernels/1109/1 "2024-06-11T13:02:36Z")

</div>

Hello,

I would like to introduce the gradients at solution points in a 1D kernel (.e.g entropyfilter) to access them in the form:

```auto
gradu='in fpdtype_t[${str(nupts)}][${str(nvars)}][${str(ndims)}]'

```

Is it possible? If so, how?

Best

---

<div class="post-metadata">

**Author:** ![fdw](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fdw](https://pyfr.discourse.group/u/fdw)\
**Post date:** [11 June 2024 15:58 UTC](https://pyfr.discourse.group/t/gradients-in-1d-kernels/1109/2 "2024-06-11T15:58:25Z")

</div>

This is not currently possible.

Adding this would require modifying the code generator to support arrays with three constant dimensions (as opposed to the current limit of two).

Regards, Freddie.
