Changeset 2495 for XIOS3/branches
- Timestamp:
- 04/25/23 11:27:30 (14 months ago)
- Location:
- XIOS3/branches/xios-3.0-beta
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/branches/xios-3.0-beta/generic_testcase/iodef.xml
r2392 r2495 89 89 <variable id="min_buffer_size" type="int">10000</variable> 90 90 <variable id="optimal_buffer_size" type="string">performance</variable> 91 <variable id="buffer_factor_size" type="double">0.8</variable>92 91 </variable_group> 93 92 -
XIOS3/branches/xios-3.0-beta/src/node/variable.cpp
r1784 r2495 38 38 SuperClass::parse(node); 39 39 StdString id = (this->hasId()) ? this->getId() : StdString("undefined"); 40 if (CContext::getCurrent()->getId()=="xios") checkInDictionary(id); 40 41 if (!node.getContent(this->content)) 41 42 { … … 60 61 } 61 62 content = boost::trim_copy(content) ; 63 } 64 65 void CVariable::checkInDictionary(StdString id) 66 { 67 // $ grep -rw getin ../src/|grep -v template|grep \"|awk -F \" '{ print $2}'|sort|uniq 68 set<StdString> dictionary_ = { 69 "buffer_size_factor", 70 "call_oasis_enddef", 71 "check_event_sync", 72 "checksum_recv_fields", 73 "checksum_send_fields", 74 "clients_code_id", 75 "info_level", 76 "log_memory", 77 "log_type", 78 "max_buffer_size", 79 "memtrack_blocks", 80 "memtrack_size", 81 "min_buffer_size", 82 "number_pools_server2", 83 "optimal_buffer_size", 84 "print_file", 85 "pure_one_sided", 86 "ratio_server2", 87 "recv_field_timeout", 88 "server2_dist_file_memory", 89 "server2_dist_file_memory_ratio", 90 "server_puplish_timeout", 91 "system_stack", 92 "transport_protocol", 93 "using_oasis", 94 "using_server", 95 "using_server2", 96 "xios_stack" 97 }; 98 if (dictionary_.find(id)==dictionary_.end()) 99 { 100 ERROR("CVariable::checkInDictionary(StdString id)", 101 << "[ variable id = " << id 102 << " ] variable does not exist ! Check the syntax of your context id 'xios' in iodef.xml."); 103 } 62 104 } 63 105 -
XIOS3/branches/xios-3.0-beta/src/node/variable.hpp
r2326 r2495 95 95 private : 96 96 97 static void checkInDictionary(StdString id); 97 98 StdString content; 98 99 -
XIOS3/branches/xios-3.0-beta/xios_test_suite/TEST_SUITE/iodef.xml
r2301 r2495 50 50 <variable id="min_buffer_size" type="int">10000000</variable> 51 51 <variable id="optimal_buffer_size" type="string">performance</variable> 52 < variable id="buffer_factor_size" type="double">0.8</variable>52 <!--variable id="buffer_factor_size" type="double">0.8</variable--> 53 53 </variable_group> 54 54 … … 63 63 <variable id="check_event_sync" type="bool">true</variable> 64 64 </variable_group> 65 < variable id="activate_non_distributed_transformation" type="bool">XIOS::NonDistTran</variable>65 <!--variable id="activate_non_distributed_transformation" type="bool">XIOS::NonDistTran</variable--> 66 66 </variable_definition> 67 67 </context>
Note: See TracChangeset
for help on using the changeset viewer.