# Block field logic in 3DEC

**URL:** <https://forum.itascainternational.com/t/block-field-logic-in-3dec/1466>\
**Category:** 3DEC\
**Tags:** fish\
**Created:** [May 20, 2024, 7:57am UTC](https://forum.itascainternational.com/t/block-field-logic-in-3dec/1466 "2024-05-20T07:57:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BillyF](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@BillyF](https://forum.itascainternational.com/u/BillyF)\
**Post date:** [May 20, 2024, 7:57am UTC](https://forum.itascainternational.com/t/block-field-logic-in-3dec/1466/1 "2024-05-20T07:57:10Z")

</div>

Hi Itascans!  
I am using 3DEC v 7 and I wanted to use the block.field logic for extracting stress results. I got confused about the block.field.method setting. According to the manual, setting block.field.method.name() = ‘constant’ or block.field.method.index() = 0 is the default, but none of these settings are accepted by the code.  
Setting block.field.method.name() = ‘average’ returns block.field.method.index() = 2 while it should be 1 according the manual. So, it appears to me that there is some bug since the default method name setting is not accepted and also some misprint in the manual about the mapping between method indices and method names.

---

<div class="post-metadata">

**Author:** ![jhazzard](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jhazzard](https://forum.itascainternational.com/u/jhazzard)\
**Post date:** [May 20, 2024, 7:16pm UTC](https://forum.itascainternational.com/t/block-field-logic-in-3dec/1466/2 "2024-05-20T19:16:18Z")

</div>

You are correct. The documentation is off by 1. It should read

> The indices corresponding to names are 1 = constant, 2 = volume-weighted averaging, 3 = inverse-distance-weighted averaging, and 4 = polynomial fit. See [`block.field.method.name`](https://docs.itascacg.com/itasca900/3dec/block/doc/manual/block_manual/block_fish/block.field/fish_block.field.method.name.html#function:block.field.method.name). The default value is 1.

I’ll fix it for the next update.
