Skip to main content

logic:same generic data containers?

Version: 0.0.0

Description

Takes two generic data containers and compares them. Supported types: Field, FieldsContainer, Mesh, MeshesContainer, PropertyField, PropertyFieldsContainer, Scoping, ScopingsContainer, StringFieldstandard types (double, int, string, vector of int, doubles, string)Note: all inputs related to fields, mesh, and so on are passed to each property check.

Inputs

InputNameExpected type(s)Description
Pin 0
Required
generic_data_containerAgeneric_data_container
Pin 1
Required
generic_data_containerBgeneric_data_container
Pin 2
Required
double_valuedoubleDouble positive small value. Smallest value considered during the comparison step. All the absolute values in the field less than this value are considered null, (default value: 1.0e-14).
Pin 3double_tolerancedoubleDouble relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1-v2)/v2 < relativeTol. Default is 0.001.
Pin 4
Required
compare_auxiliaryboolFor meshes and meshescontainer: compare auxiliary data (i.e property fields, scopings...). Default value is 'false'.

Outputs

OutputNameExpected type(s)Description
Pin 0includedboolbool (true if belongs...)
Pin 1messagestring

Configurations

NameExpected type(s)Default valueDescription
mutexboolfalseIf this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

Scripting

Category: logic

Plugin: core

Scripting name: identical_generic_data_containers

Full name: logic.identical_generic_data_containers

Internal name: compare::generic_data_container

License: None

Changelog

  • Version 0.0.0: Initial release.