Ignore:
Timestamp:
01/20/14 15:01:03 (11 years ago)
Author:
ymipsl
Message:

New function available form fortran interface : LOGICAL xios_context_is_initialized("context_id")
Return .true. if the context "context_id" has been initialized before.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/interface/c/icdata.cpp

    r445 r461  
    7575   } 
    7676  
     77   void cxios_context_is_initialized(const char * context_id , int len_context_id, bool* initialized) 
     78   { 
     79     std::string str;  
     80      
     81     if (!cstr2string(context_id, len_context_id, str)) return; 
     82     CTimer::get("XIOS").resume() ; 
     83     CContext* context = CContext::get(str,str) ; 
     84     *initialized=context->isInitialized() ; 
     85     CTimer::get("XIOS").suspend() ; 
     86   }   
     87    
    7788    void cxios_context_close_definition() 
    7889   { 
Note: See TracChangeset for help on using the changeset viewer.