[MOAB-dev] Fortran interface to iMesh_CreateEntSet

Robert Jacob jacob at mcs.anl.gov
Mon Nov 21 12:20:38 CST 2011


Yes putting %VAL() around rpcoor fixed the problem.

But I added the next line:
   call iMesh_addEntArrToSet(%VAL(mesh),%VAL(rpents),%VAL(nhands), &
       %VAL(sethand),ier)

To the code I sent out yesterday and that's crashing.

Rob


On 11/21/11 11:55 AM, Tim Tautges wrote:
> The literal constant is fine; it's passing rpcoor by reference that's
> the problem here, it should be passed by value.
>
> I'll look at the code to see what's going on.
>
> - tim
>
> On 11/21/2011 08:53 AM, Paul Wilson wrote:
>> Hi all,
>>
>> I'm not an expert on the calling interface, but any change it doesn't
>> like you using the %VAL() construct on literal
>> constant?
>>
>> On 11/21/2011 08:49 AM, Iulian Grindeanu wrote:
>>> call iMesh_createEntSet(%VAL(mesh), %VAL(1), &
>>> sethand,ier)
>> What about:
>>
>> *myVariable = 1*
>> call iMesh_createEntSet(%VAL(mesh), %VAL(*myVariable*), &
>> sethand,ier)
>>
>> I'm just guessing!!!
>>
>> Paul
>>
>> --
>> -- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --
>> Paul Wilson ~ UW-Madison ~ 608-263-0807 ~ cal:http://bit.ly/pphw-cal
>> Associate Professor, Engineering Physics. ~http://cnerg.engr.wisc.edu
>> Chair, Energy Analysis& Policy Program ~http://nelson.wisc.edu/eap
>>
>


More information about the moab-dev mailing list