@exportmpcinlongformat()

Returns 1 if EXPORT_MPC_LONGFORMAT is passed via *feoutputwithdata.

Syntax

@exportmpcinlongformat()

Type

HyperMesh Template Function

Description

Returns 1 if EXPORT_ MPC_LONGFORMAT is passed via *feoutputwithdata.

Examples

Example:

*if([@exportmpcinlongformat()])
                *if([counter17==0])
                *if([@writehmcomments()])
                *string("$$")
                *end()
                *string("$$  MPC Data")
                *end()
                *string("$$")
                *end()
                *endif()    
                *counterset(counter17,1)
                *endif()
                
                *string("MPC*    ")
                *field(integer,collector.id,16)
                *field(integer,dependentnode.id,16)
                *if($MPC_C1_FLAG==1)
                *string("               0")
                *else()
                *field(integer,dependentdof,16)
                *endif()
                *field(real,dependentcoeff,16)
                *counterset(counter1,1)
                *counterset(counter2,2)
                *counterset(counter3,1)
                
                *loopif([counter1 <= independentnodesmax])
                *pointerset(pointer1,independentnodes,[counter1 - 1])
                *pointerset(pointer2,independentdofs,[counter1 - 1])
                *endif()

Version History

2022