Changeset 327 for XIOS/trunk
- Timestamp:
- 02/24/12 01:33:38 (12 years ago)
- Location:
- XIOS/trunk
- Files:
-
- 4 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/arch/arch-X64_TITANE.fcm
r287 r327 17 17 %DEBUG_FFLAGS -DXIOS_DEBUG -g -traceback 18 18 19 %BASE_INC -D NONE19 %BASE_INC -D __NONE__ 20 20 %BASE_LD -lstdc++ -
XIOS/trunk/bld.cfg
r316 r327 35 35 bld::tool::cc %CCOMPILER 36 36 bld::tool::fc %FCOMPILER 37 bld::tool::fpp cpp 38 bld::tool::cpp cpp 37 39 bld::tool::cppflags %BASE_INC -I${PWD}/extern/boost/include -I${PWD}/extern/rapidxml/include -I/usr/include 40 bld::tool::fppflags -std=c99 %BASE_INC -I${PWD}/extern/boost/include -I${PWD}/extern/rapidxml/include -I/usr/include 38 41 bld::tool::ld %LINKER 39 42 bld::tool::ldflags %LD_FLAGS … … 44 47 45 48 # Pre-process code before analysing dependencies 46 bld::pp false 49 bld::pp false 50 bld::pp::interface/fortran true 51 bld::pp::interface/fortran_attr true 47 52 bld::excl_dep use::mod_prism_get_comm 48 53 bld::excl_dep use::mod_prism_get_localcomm_proto -
XIOS/trunk/src/buffer_out.cpp
r300 r327 5 5 namespace xmlioserver 6 6 { 7 namespace ym8 {9 7 CBufferOut::CBufferOut(void* buffer,size_t size) 10 8 { … … 68 66 if (own) delete [] begin ; 69 67 } 70 71 } 68 72 69 } 73 70 -
XIOS/trunk/src/context_server.hpp
r300 r327 1 1 #ifndef __CONTEXT_SERVER_HPP__ 2 #define __CONTEXT_ CLIENT_HPP__2 #define __CONTEXT_SERVER_HPP__ 3 3 #include "xmlioserver_spl.hpp" 4 4 #include "event_server.hpp" -
XIOS/trunk/src/node/field.hpp
r321 r327 166 166 } // namespace xmlioserver 167 167 168 #include "grid.hpp"169 170 namespace xmlioserver {171 namespace tree {172 173 template <StdSize N>174 void CField::setData(const ARRAY(double, N) _data)175 {176 const std::vector<boost::shared_ptr<CField> > & refField=getAllReference();177 std::vector<boost::shared_ptr<CField> >::const_iterator it = refField.begin(), end = refField.end();178 179 for (; it != end; it++) (*it)->updateData(_data) ;180 }181 182 template <StdSize N>183 bool CField::updateData(const ARRAY(double, N) _data)184 {185 shared_ptr<CContext> context=CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ;186 const date::CDate & currDate = context->getCalendar()->getCurrentDate();187 const date::CDate opeDate = *last_operation + freq_operation;188 const date::CDate writeDate = *last_Write + freq_write;189 190 191 info(50) << "CField::updateData " << currDate << " : send data to " << this->getBaseFieldId() << std::endl;192 info(50) << "Next operation " << opeDate<<std::endl;193 194 if (opeDate <= currDate)195 {196 if (this->data->num_elements() != this->grid->storeIndex_client->num_elements())197 {198 this->data->resize(boost::extents[this->grid->storeIndex_client ->num_elements()]);199 }200 201 ARRAY_CREATE(input, double, 1, [this->data->num_elements()]);202 this->grid->inputField(_data, input);203 (*this->foperation)(input);204 205 *last_operation = currDate;206 info(50) << "(*last_operation = currDate) : " << *last_operation << " = " << currDate << std::endl;207 }208 209 if (writeDate < (currDate + freq_operation))210 {211 this->foperation->final();212 *last_Write = writeDate;213 info(50) << "(*last_Write = currDate) : " << *last_Write << " = " << currDate << std::endl;214 sendUpdateData() ;215 return (true);216 }217 218 return (false);219 }220 221 } // namespace tree222 } // namespace xmlioserver223 168 224 169 #endif // __XMLIO_CField__ -
XIOS/trunk/src/object_template_impl.hpp
r314 r327 2 2 #define __XMLIO_CObjectTemplate_impl__ 3 3 4 #include "xmlioserver_spl.hpp" 5 #include "context_client.hpp" 4 6 #include "object_factory.hpp" 5 7 #include "context.hpp" … … 7 9 #include "attribute.hpp" 8 10 #include "event_client.hpp" 11 #include "object_template.hpp" 9 12 #include "context_client.hpp" 10 #include "object_template.hpp" 13 #include "indent.hpp" 14 #include "type_util.hpp" 15 #include "message.hpp" 16 #include "type.hpp" 11 17 12 18 namespace xmlioserver -
XIOS/trunk/src/test/test_cs.f90
r316 r327 68 68 69 69 70 CALL xios_initialize(id, local_comm=MPI_COMM_WORLD,return_comm=comm)70 CALL xios_initialize(id,return_comm=comm) 71 71 72 72 CALL xios_context_initialize("test",comm) -
XIOS/trunk/src/type/type_util.hpp
r313 r327 19 19 class CContext; 20 20 } 21 typedef tree::CDomain CDomain; 22 typedef tree::CDomainGroup CDomainGroup; 23 typedef tree::CField CField; 24 typedef tree::CFieldGroup CFieldGroup; 25 typedef tree::CGrid CGrid; 26 typedef tree::CGridGroup CGridGroup; 27 typedef tree::CAxis CAxis; 28 typedef tree::CAxisGroup CAxisGroup; 29 typedef tree::CFile CFile; 30 typedef tree::CFileGroup CFileGroup; 31 typedef tree::CContext CContext; 21 22 /* 23 typedef tree::CDomain CDomain; 24 typedef tree::CDomainGroup CDomainGroup; 25 typedef tree::CField CField; 26 typedef tree::CFieldGroup CFieldGroup; 27 typedef tree::CGrid CGrid; 28 typedef tree::CGridGroup CGridGroup; 29 typedef tree::CAxis CAxis; 30 typedef tree::CAxisGroup CAxisGroup; 31 typedef tree::CFile CFile; 32 typedef tree::CFileGroup CFileGroup; 33 typedef tree::CContext CContext; 34 */ 32 35 33 36 template <typename T> … … 49 52 macro(wchar_t) 50 53 macro(bool) 54 #undef macro 55 56 #define macro(T) template <> inline string getStrType<tree::T>(void) { return std::string(#T) ; } 51 57 macro(CDomain) 52 58 macro(CDomainGroup)
Note: See TracChangeset
for help on using the changeset viewer.