test/dictionary/testCalc: Added example of a HashTable entry and access in #calc
namedU (U0 (1.1 2.1 1.1) U1 (2.1 3.2 4.1) U2 (4.3 5.3 0)); magU2 #calc "mag($<HashTable<vector>>namedU[\"U2\"])";
This commit is contained in:
@ -76,4 +76,8 @@ magU1 #calc "mag($<List<vector>>listU[1])";
|
||||
magUs #calc "mag($<Field<vector>>listU)";
|
||||
magSqrU1 #calc "sqr($<Field<scalar>>magUs[1])";
|
||||
|
||||
#calcInclude "HashTable.H"
|
||||
namedU (U0 (1.1 2.1 1.1) U1 (2.1 3.2 4.1) U2 (4.3 5.3 0));
|
||||
magU2 #calc "mag($<HashTable<vector>>namedU[\"U2\"])";
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user