664 std::cout <<
"Running Test__ModuleMeshRegistration" << std::endl;
667 COM_LOAD_MODULE_STATIC_DYNAMIC(OpenFoamFSI,
"OFModule");
670 int initHandle = COM_get_function_handle(
"OFModule.InitFoam");
673 std::string suffix =
"/share/Testing/test_data/HronTurekFsi";
675 std::string testDir = IRAD::Sys::CWD() +
"/UnitTestDataMeshTest";
677 std::string fluidDir = testDir +
"/fluid";
678 std::string OrgDir = IRAD::Sys::CWD();
679 IntDir = IRAD::Sys::ChDir(fluidDir);
684 dummy2[0] =
const_cast<char *
>(std::string(
"meshReg").c_str());
687 COM_call_function(initHandle, &dummy1, &dummy2, &verb);
692 COM_get_dataitems(
"OFModule", &numDataItems, output);
693 std::istringstream Istr(output);
694 std::vector<std::string> dataItemNames;
696 for (
int i=0; i<numDataItems; ++i) {
699 dataItemNames.push_back(name);
700 std::cout <<
"DataItem # " << i <<
": " << name << std::endl;
706 COM_get_panes(
"OFModule", &numPanes, &paneList);
707 std::cout <<
"Number of Panes " << numPanes << std::endl;
708 for (
int i=0; i<numPanes; ++i)
709 std::cout <<
"Pane ID # " << i+1 <<
"=" << paneList[i] << std::endl;
712 int pane = paneList[0];
717 bool coordCorrect =
false;
719 COM_get_array(
"OFModule.nc", pane, &Coord);
721 std::cout <<
"In Test__ModuleMeshRegistration: No mesh coordinates registered."
725 result.UpdateResult(
"CoordinateData:Registered",
true);
730 int numNodesExpected = 338;
731 COM_get_size(
"OFModule.nc", pane, &numNodes);
733 if (numNodes != numNodesExpected) {
734 std::cout <<
"Wrong number of nodes registered for this mesh." << std::endl;
735 std::cout <<
"Got " << numNodes <<
" Expected: " << numNodesExpected << std::endl;
743 double CoordCheck[338][3] =
745 { {0.299528, 0.21, -0.025334},
746 {0.299528, 0.21, 0.025334},
747 {0.295179, 0.21, 0.025334},
748 {0.295179, 0.21, -0.025334},
749 {0.291124, 0.21, 0.025334},
750 {0.291124, 0.21, -0.025334},
751 {0.287343, 0.21, 0.025334},
752 {0.287343, 0.21, -0.025334},
753 {0.283818, 0.21, 0.025334},
754 {0.283818, 0.21, -0.025334},
755 {0.280531, 0.21, 0.025334},
756 {0.280531, 0.21, -0.025334},
757 {0.277466, 0.21, 0.025334},
758 {0.277466, 0.21, -0.025334},
759 {0.274609, 0.21, 0.025334},
760 {0.274609, 0.21, -0.025334},
761 {0.271945, 0.21, 0.025334},
762 {0.271945, 0.21, -0.025334},
763 {0.26946, 0.21, 0.025334},
764 {0.26946, 0.21, -0.025334},
765 {0.267144, 0.21, 0.025334},
766 {0.267144, 0.21, -0.025334},
767 {0.264984, 0.21, 0.025334},
768 {0.264984, 0.21, -0.025334},
769 {0.262971, 0.21, 0.025334},
770 {0.262971, 0.21, -0.025334},
771 {0.261093, 0.21, 0.025334},
772 {0.261093, 0.21, -0.025334},
773 {0.259343, 0.21, 0.025334},
774 {0.259343, 0.21, -0.025334},
775 {0.25771, 0.21, 0.025334},
776 {0.25771, 0.21, -0.025334},
777 {0.256188, 0.21, 0.025334},
778 {0.256188, 0.21, -0.025334},
779 {0.254769, 0.21, 0.025334},
780 {0.254769, 0.21, -0.025334},
781 {0.253446, 0.21, 0.025334},
782 {0.253446, 0.21, -0.025334},
783 {0.252213, 0.21, 0.025334},
784 {0.252213, 0.21, -0.025334},
785 {0.251062, 0.21, 0.025334},
786 {0.251062, 0.21, -0.025334},
787 {0.24999, 0.21, 0.025334},
788 {0.24999, 0.21, -0.025334},
789 {0.24899, 0.21, 0.025334},
790 {0.24899, 0.21, -0.025334},
791 {0.295179, 0.19, 0.025334},
792 {0.299528, 0.19, 0.025334},
793 {0.299528, 0.19, -0.025334},
794 {0.295179, 0.19, -0.025334},
795 {0.291124, 0.19, 0.025334},
796 {0.291124, 0.19, -0.025334},
797 {0.287343, 0.19, 0.025334},
798 {0.287343, 0.19, -0.025334},
799 {0.283818, 0.19, 0.025334},
800 {0.283818, 0.19, -0.025334},
801 {0.280531, 0.19, 0.025334},
802 {0.280531, 0.19, -0.025334},
803 {0.277466, 0.19, 0.025334},
804 {0.277466, 0.19, -0.025334},
805 {0.274609, 0.19, 0.025334},
806 {0.274609, 0.19, -0.025334},
807 {0.271945, 0.19, 0.025334},
808 {0.271945, 0.19, -0.025334},
809 {0.26946, 0.19, 0.025334},
810 {0.26946, 0.19, -0.025334},
811 {0.267144, 0.19, 0.025334},
812 {0.267144, 0.19, -0.025334},
813 {0.264984, 0.19, 0.025334},
814 {0.264984, 0.19, -0.025334},
815 {0.262971, 0.19, 0.025334},
816 {0.262971, 0.19, -0.025334},
817 {0.261093, 0.19, 0.025334},
818 {0.261093, 0.19, -0.025334},
819 {0.259343, 0.19, 0.025334},
820 {0.259343, 0.19, -0.025334},
821 {0.25771, 0.19, 0.025334},
822 {0.25771, 0.19, -0.025334},
823 {0.256188, 0.19, 0.025334},
824 {0.256188, 0.19, -0.025334},
825 {0.254769, 0.19, 0.025334},
826 {0.254769, 0.19, -0.025334},
827 {0.253446, 0.19, 0.025334},
828 {0.253446, 0.19, -0.025334},
829 {0.252213, 0.19, 0.025334},
830 {0.252213, 0.19, -0.025334},
831 {0.251062, 0.19, 0.025334},
832 {0.251062, 0.19, -0.025334},
833 {0.24999, 0.19, 0.025334},
834 {0.24999, 0.19, -0.025334},
835 {0.24899, 0.19, -0.025334},
836 {0.24899, 0.19, 0.025334},
837 {0.6, 0.19, -0.025334},
838 {0.6, 0.19, 0.025334},
839 {0.6, 0.195, 0.025334},
840 {0.6, 0.195, -0.025334},
841 {0.6, 0.2, 0.025334},
842 {0.6, 0.2, -0.025334},
843 {0.6, 0.205, 0.025334},
844 {0.6, 0.205, -0.025334},
845 {0.6, 0.21, 0.025334},
846 {0.6, 0.21, -0.025334},
847 {0.594992, 0.21, 0.025334},
848 {0.594992, 0.21, -0.025334},
849 {0.589984, 0.21, 0.025334},
850 {0.589984, 0.21, -0.025334},
851 {0.584976, 0.21, 0.025334},
852 {0.584976, 0.21, -0.025334},
853 {0.579969, 0.21, 0.025334},
854 {0.579969, 0.21, -0.025334},
855 {0.574961, 0.21, 0.025334},
856 {0.574961, 0.21, -0.025334},
857 {0.569953, 0.21, 0.025334},
858 {0.569953, 0.21, -0.025334},
859 {0.564945, 0.21, 0.025334},
860 {0.564945, 0.21, -0.025334},
861 {0.559937, 0.21, 0.025334},
862 {0.559937, 0.21, -0.025334},
863 {0.554929, 0.21, 0.025334},
864 {0.554929, 0.21, -0.025334},
865 {0.549921, 0.21, 0.025334},
866 {0.549921, 0.21, -0.025334},
867 {0.544913, 0.21, 0.025334},
868 {0.544913, 0.21, -0.025334},
869 {0.539906, 0.21, 0.025334},
870 {0.539906, 0.21, -0.025334},
871 {0.534898, 0.21, 0.025334},
872 {0.534898, 0.21, -0.025334},
873 {0.52989, 0.21, 0.025334},
874 {0.52989, 0.21, -0.025334},
875 {0.524882, 0.21, 0.025334},
876 {0.524882, 0.21, -0.025334},
877 {0.519874, 0.21, 0.025334},
878 {0.519874, 0.21, -0.025334},
879 {0.514866, 0.21, 0.025334},
880 {0.514866, 0.21, -0.025334},
881 {0.509858, 0.21, 0.025334},
882 {0.509858, 0.21, -0.025334},
883 {0.50485, 0.21, 0.025334},
884 {0.50485, 0.21, -0.025334},
885 {0.499843, 0.21, 0.025334},
886 {0.499843, 0.21, -0.025334},
887 {0.494835, 0.21, 0.025334},
888 {0.494835, 0.21, -0.025334},
889 {0.489827, 0.21, 0.025334},
890 {0.489827, 0.21, -0.025334},
891 {0.484819, 0.21, 0.025334},
892 {0.484819, 0.21, -0.025334},
893 {0.479811, 0.21, 0.025334},
894 {0.479811, 0.21, -0.025334},
895 {0.474803, 0.21, 0.025334},
896 {0.474803, 0.21, -0.025334},
897 {0.469795, 0.21, 0.025334},
898 {0.469795, 0.21, -0.025334},
899 {0.464787, 0.21, 0.025334},
900 {0.464787, 0.21, -0.025334},
901 {0.45978, 0.21, 0.025334},
902 {0.45978, 0.21, -0.025334},
903 {0.454772, 0.21, 0.025334},
904 {0.454772, 0.21, -0.025334},
905 {0.449764, 0.21, 0.025334},
906 {0.449764, 0.21, -0.025334},
907 {0.444756, 0.21, 0.025334},
908 {0.444756, 0.21, -0.025334},
909 {0.439748, 0.21, 0.025334},
910 {0.439748, 0.21, -0.025334},
911 {0.43474, 0.21, 0.025334},
912 {0.43474, 0.21, -0.025334},
913 {0.429732, 0.21, 0.025334},
914 {0.429732, 0.21, -0.025334},
915 {0.424724, 0.21, 0.025334},
916 {0.424724, 0.21, -0.025334},
917 {0.419717, 0.21, 0.025334},
918 {0.419717, 0.21, -0.025334},
919 {0.414709, 0.21, 0.025334},
920 {0.414709, 0.21, -0.025334},
921 {0.409701, 0.21, 0.025334},
922 {0.409701, 0.21, -0.025334},
923 {0.404693, 0.21, 0.025334},
924 {0.404693, 0.21, -0.025334},
925 {0.399685, 0.21, 0.025334},
926 {0.399685, 0.21, -0.025334},
927 {0.394677, 0.21, 0.025334},
928 {0.394677, 0.21, -0.025334},
929 {0.389669, 0.21, 0.025334},
930 {0.389669, 0.21, -0.025334},
931 {0.384661, 0.21, 0.025334},
932 {0.384661, 0.21, -0.025334},
933 {0.379654, 0.21, 0.025334},
934 {0.379654, 0.21, -0.025334},
935 {0.374646, 0.21, 0.025334},
936 {0.374646, 0.21, -0.025334},
937 {0.369638, 0.21, 0.025334},
938 {0.369638, 0.21, -0.025334},
939 {0.36463, 0.21, 0.025334},
940 {0.36463, 0.21, -0.025334},
941 {0.359622, 0.21, 0.025334},
942 {0.359622, 0.21, -0.025334},
943 {0.354614, 0.21, 0.025334},
944 {0.354614, 0.21, -0.025334},
945 {0.349606, 0.21, 0.025334},
946 {0.349606, 0.21, -0.025334},
947 {0.344599, 0.21, 0.025334},
948 {0.344599, 0.21, -0.025334},
949 {0.339591, 0.21, 0.025334},
950 {0.339591, 0.21, -0.025334},
951 {0.334583, 0.21, 0.025334},
952 {0.334583, 0.21, -0.025334},
953 {0.329575, 0.21, 0.025334},
954 {0.329575, 0.21, -0.025334},
955 {0.324567, 0.21, 0.025334},
956 {0.324567, 0.21, -0.025334},
957 {0.319559, 0.21, 0.025334},
958 {0.319559, 0.21, -0.025334},
959 {0.314551, 0.21, 0.025334},
960 {0.314551, 0.21, -0.025334},
961 {0.309543, 0.21, 0.025334},
962 {0.309543, 0.21, -0.025334},
963 {0.304536, 0.21, 0.025334},
964 {0.304536, 0.21, -0.025334},
965 {0.304536, 0.19, 0.025334},
966 {0.304536, 0.19, -0.025334},
967 {0.309543, 0.19, 0.025334},
968 {0.309543, 0.19, -0.025334},
969 {0.314551, 0.19, 0.025334},
970 {0.314551, 0.19, -0.025334},
971 {0.319559, 0.19, 0.025334},
972 {0.319559, 0.19, -0.025334},
973 {0.324567, 0.19, 0.025334},
974 {0.324567, 0.19, -0.025334},
975 {0.329575, 0.19, 0.025334},
976 {0.329575, 0.19, -0.025334},
977 {0.334583, 0.19, 0.025334},
978 {0.334583, 0.19, -0.025334},
979 {0.339591, 0.19, 0.025334},
980 {0.339591, 0.19, -0.025334},
981 {0.344599, 0.19, 0.025334},
982 {0.344599, 0.19, -0.025334},
983 {0.349606, 0.19, 0.025334},
984 {0.349606, 0.19, -0.025334},
985 {0.354614, 0.19, 0.025334},
986 {0.354614, 0.19, -0.025334},
987 {0.359622, 0.19, 0.025334},
988 {0.359622, 0.19, -0.025334},
989 {0.36463, 0.19, 0.025334},
990 {0.36463, 0.19, -0.025334},
991 {0.369638, 0.19, 0.025334},
992 {0.369638, 0.19, -0.025334},
993 {0.374646, 0.19, 0.025334},
994 {0.374646, 0.19, -0.025334},
995 {0.379654, 0.19, 0.025334},
996 {0.379654, 0.19, -0.025334},
997 {0.384661, 0.19, 0.025334},
998 {0.384661, 0.19, -0.025334},
999 {0.389669, 0.19, 0.025334},
1000 {0.389669, 0.19, -0.025334},
1001 {0.394677, 0.19, 0.025334},
1002 {0.394677, 0.19, -0.025334},
1003 {0.399685, 0.19, 0.025334},
1004 {0.399685, 0.19, -0.025334},
1005 {0.404693, 0.19, 0.025334},
1006 {0.404693, 0.19, -0.025334},
1007 {0.409701, 0.19, 0.025334},
1008 {0.409701, 0.19, -0.025334},
1009 {0.414709, 0.19, 0.025334},
1010 {0.414709, 0.19, -0.025334},
1011 {0.419717, 0.19, 0.025334},
1012 {0.419717, 0.19, -0.025334},
1013 {0.424724, 0.19, 0.025334},
1014 {0.424724, 0.19, -0.025334},
1015 {0.429732, 0.19, 0.025334},
1016 {0.429732, 0.19, -0.025334},
1017 {0.43474, 0.19, 0.025334},
1018 {0.43474, 0.19, -0.025334},
1019 {0.439748, 0.19, 0.025334},
1020 {0.439748, 0.19, -0.025334},
1021 {0.444756, 0.19, 0.025334},
1022 {0.444756, 0.19, -0.025334},
1023 {0.449764, 0.19, 0.025334},
1024 {0.449764, 0.19, -0.025334},
1025 {0.454772, 0.19, 0.025334},
1026 {0.454772, 0.19, -0.025334},
1027 {0.45978, 0.19, 0.025334},
1028 {0.45978, 0.19, -0.025334},
1029 {0.464787, 0.19, 0.025334},
1030 {0.464787, 0.19, -0.025334},
1031 {0.469795, 0.19, 0.025334},
1032 {0.469795, 0.19, -0.025334},
1033 {0.474803, 0.19, 0.025334},
1034 {0.474803, 0.19, -0.025334},
1035 {0.479811, 0.19, 0.025334},
1036 {0.479811, 0.19, -0.025334},
1037 {0.484819, 0.19, 0.025334},
1038 {0.484819, 0.19, -0.025334},
1039 {0.489827, 0.19, 0.025334},
1040 {0.489827, 0.19, -0.025334},
1041 {0.494835, 0.19, 0.025334},
1042 {0.494835, 0.19, -0.025334},
1043 {0.499843, 0.19, 0.025334},
1044 {0.499843, 0.19, -0.025334},
1045 {0.50485, 0.19, 0.025334},
1046 {0.50485, 0.19, -0.025334},
1047 {0.509858, 0.19, 0.025334},
1048 {0.509858, 0.19, -0.025334},
1049 {0.514866, 0.19, 0.025334},
1050 {0.514866, 0.19, -0.025334},
1051 {0.519874, 0.19, 0.025334},
1052 {0.519874, 0.19, -0.025334},
1053 {0.524882, 0.19, 0.025334},
1054 {0.524882, 0.19, -0.025334},
1055 {0.52989, 0.19, 0.025334},
1056 {0.52989, 0.19, -0.025334},
1057 {0.534898, 0.19, 0.025334},
1058 {0.534898, 0.19, -0.025334},
1059 {0.539906, 0.19, 0.025334},
1060 {0.539906, 0.19, -0.025334},
1061 {0.544913, 0.19, 0.025334},
1062 {0.544913, 0.19, -0.025334},
1063 {0.549921, 0.19, 0.025334},
1064 {0.549921, 0.19, -0.025334},
1065 {0.554929, 0.19, 0.025334},
1066 {0.554929, 0.19, -0.025334},
1067 {0.559937, 0.19, 0.025334},
1068 {0.559937, 0.19, -0.025334},
1069 {0.564945, 0.19, 0.025334},
1070 {0.564945, 0.19, -0.025334},
1071 {0.569953, 0.19, 0.025334},
1072 {0.569953, 0.19, -0.025334},
1073 {0.574961, 0.19, 0.025334},
1074 {0.574961, 0.19, -0.025334},
1075 {0.579969, 0.19, 0.025334},
1076 {0.579969, 0.19, -0.025334},
1077 {0.584976, 0.19, 0.025334},
1078 {0.584976, 0.19, -0.025334},
1079 {0.589984, 0.19, 0.025334},
1080 {0.589984, 0.19, -0.025334},
1081 {0.594992, 0.19, 0.025334},
1082 {0.594992, 0.19, -0.025334} };
1085 for(
int i=0; i < numNodes; i++) {
1086 for(
int j=0; j < 3; j++){
1087 if(fabs(CoordCheck[i][j] - Coord[i*3+j]) > 1.0e-6){
1088 coordCorrect =
false;
1089 std::cout <<
"Incorrect coordinate value for node=" << i
1090 <<
" index " << j <<
" Expected " << CoordCheck[i][j]
1091 <<
" Got " << Coord[i*3+j] << std::endl;
1095 result.UpdateResult(
"CoordinateData:Correct", coordCorrect);
1100 bool connCorrect =
true;
1104 std::string stringNames;
1105 COM_get_connectivities(
"OFModule", pane, &numConn, stringNames);
1106 std::istringstream ConnISS(stringNames);
1107 std::vector<std::string> connNames;
1109 for (
int i=0; i<numConn; ++i) {
1112 connNames.push_back(name);
1113 std::cout <<
"Connectivity Table # " << i+1 <<
": " << name << std::endl;
1117 char getDataItemLoc;
1118 COM_Type getDataItemType;
1119 int numElementNodes;
1120 std::string getDataItemUnits;
1121 std::string fullConnName(
"OFModule."+connNames[0]);
1122 COM_get_dataitem(fullConnName, &getDataItemLoc, &getDataItemType,
1123 &numElementNodes, &getDataItemUnits);
1125 std::cout <<
"getDataItemLoc " << getDataItemLoc << std::endl;
1126 std::cout <<
"getDataItemType " << getDataItemType << std::endl;
1127 std::cout <<
"numElementNodes " << numElementNodes << std::endl;
1128 std::cout <<
"getDataItemUnits " << getDataItemUnits << std::endl;
1131 COM_get_array(fullConnName.c_str(), pane, &Conn);
1134 std::cout <<
"In Test__ModuleMeshRegistration: No mesh connectivity registered."
1138 result.UpdateResult(
"ConnectivityData:Registered",
true);
1143 int numElemExpected = 168;
1144 COM_get_size(fullConnName, pane, &numElem);
1146 if (numElem != numElemExpected) {
1147 std::cout <<
"Wrong number of elements registered for this mesh." << std::endl;
1148 std::cout <<
"Got " << numElem <<
" Expected: " << numElemExpected << std::endl;
1153 int ConnCheck[168][4] =
1201 {100, 99, 101, 102},
1202 {101, 103, 104, 102},
1203 {103, 105, 106, 104},
1204 {105, 107, 108, 106},
1205 {107, 109, 110, 108},
1206 {109, 111, 112, 110},
1207 {111, 113, 114, 112},
1208 {113, 115, 116, 114},
1209 {115, 117, 118, 116},
1210 {117, 119, 120, 118},
1211 {119, 121, 122, 120},
1212 {121, 123, 124, 122},
1213 {123, 125, 126, 124},
1214 {125, 127, 128, 126},
1215 {127, 129, 130, 128},
1216 {129, 131, 132, 130},
1217 {131, 133, 134, 132},
1218 {133, 135, 136, 134},
1219 {135, 137, 138, 136},
1220 {137, 139, 140, 138},
1221 {139, 141, 142, 140},
1222 {141, 143, 144, 142},
1223 {143, 145, 146, 144},
1224 {145, 147, 148, 146},
1225 {147, 149, 150, 148},
1226 {149, 151, 152, 150},
1227 {151, 153, 154, 152},
1228 {153, 155, 156, 154},
1229 {155, 157, 158, 156},
1230 {157, 159, 160, 158},
1231 {159, 161, 162, 160},
1232 {161, 163, 164, 162},
1233 {163, 165, 166, 164},
1234 {165, 167, 168, 166},
1235 {167, 169, 170, 168},
1236 {169, 171, 172, 170},
1237 {171, 173, 174, 172},
1238 {173, 175, 176, 174},
1239 {175, 177, 178, 176},
1240 {177, 179, 180, 178},
1241 {179, 181, 182, 180},
1242 {181, 183, 184, 182},
1243 {183, 185, 186, 184},
1244 {185, 187, 188, 186},
1245 {187, 189, 190, 188},
1246 {189, 191, 192, 190},
1247 {191, 193, 194, 192},
1248 {193, 195, 196, 194},
1249 {195, 197, 198, 196},
1250 {197, 199, 200, 198},
1251 {199, 201, 202, 200},
1252 {201, 203, 204, 202},
1253 {203, 205, 206, 204},
1254 {205, 207, 208, 206},
1255 {207, 209, 210, 208},
1256 {209, 211, 212, 210},
1257 {211, 213, 214, 212},
1258 {213, 215, 216, 214},
1259 {215, 217, 218, 216},
1260 {217, 219, 220, 218},
1263 {221, 223, 224, 222},
1264 {223, 225, 226, 224},
1265 {225, 227, 228, 226},
1266 {227, 229, 230, 228},
1267 {229, 231, 232, 230},
1268 {231, 233, 234, 232},
1269 {233, 235, 236, 234},
1270 {235, 237, 238, 236},
1271 {237, 239, 240, 238},
1272 {239, 241, 242, 240},
1273 {241, 243, 244, 242},
1274 {243, 245, 246, 244},
1275 {245, 247, 248, 246},
1276 {247, 249, 250, 248},
1277 {249, 251, 252, 250},
1278 {251, 253, 254, 252},
1279 {253, 255, 256, 254},
1280 {255, 257, 258, 256},
1281 {257, 259, 260, 258},
1282 {259, 261, 262, 260},
1283 {261, 263, 264, 262},
1284 {263, 265, 266, 264},
1285 {265, 267, 268, 266},
1286 {267, 269, 270, 268},
1287 {269, 271, 272, 270},
1288 {271, 273, 274, 272},
1289 {273, 275, 276, 274},
1290 {275, 277, 278, 276},
1291 {277, 279, 280, 278},
1292 {279, 281, 282, 280},
1293 {281, 283, 284, 282},
1294 {283, 285, 286, 284},
1295 {285, 287, 288, 286},
1296 {287, 289, 290, 288},
1297 {289, 291, 292, 290},
1298 {291, 293, 294, 292},
1299 {293, 295, 296, 294},
1300 {295, 297, 298, 296},
1301 {297, 299, 300, 298},
1302 {299, 301, 302, 300},
1303 {301, 303, 304, 302},
1304 {303, 305, 306, 304},
1305 {305, 307, 308, 306},
1306 {307, 309, 310, 308},
1307 {309, 311, 312, 310},
1308 {311, 313, 314, 312},
1309 {313, 315, 316, 314},
1310 {315, 317, 318, 316},
1311 {317, 319, 320, 318},
1312 {319, 321, 322, 320},
1313 {321, 323, 324, 322},
1314 {323, 325, 326, 324},
1315 {325, 327, 328, 326},
1316 {327, 329, 330, 328},
1317 {329, 331, 332, 330},
1318 {331, 333, 334, 332},
1319 {333, 335, 336, 334},
1320 {335, 337, 338, 336},
1321 {337, 94, 93, 338} };
1323 for(
int i=0; i < numElem; i++){
1324 for(
int j=0; j < numElementNodes; j++){
1325 if(fabs(ConnCheck[i][j] - Conn[i*numElementNodes+j]) > 1.0e-6){
1326 connCorrect =
false;
1327 std::cout <<
"Incorrect connectivity value at element " << i
1328 <<
" index " << j <<
" Expected " << ConnCheck[i][j]
1329 <<
" Got " << Conn[i*numElementNodes+j] << std::endl;
1333 result.UpdateResult(
"ConnectivityData:Correct", connCorrect);
1337 IntDir = IRAD::Sys::ChDir(OrgDir);
1338 COM_free_buffer(&paneList);
1339 COM_UNLOAD_MODULE_STATIC_DYNAMIC(OpenFoamFSI,
"OFModule");
virtual int GetInputData(std::string sourceDir, std::string destDir)
Function to copy input data from source testing directory for use in unit tests.
std::string SourceDirPath
The string for the testing source directory.