Changeset 2471 for XIOS3/trunk


Ignore:
Timestamp:
03/07/23 10:58:57 (16 months ago)
Author:
jderouillat
Message:

Fixes for new MAC environment. AND On clients that do not initialize MPI themselves, do not monitor XIOS initialization with timers (requires that MPI_init has already been done)

Location:
XIOS3/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/arch/arch-GCC_MACOSX.fcm

    r591 r2471  
    77%LINKER         mpif90 
    88 
    9 %BASE_CFLAGS    -w 
     9%BASE_CFLAGS    -w -std=gnu++11 
    1010%PROD_CFLAGS    -O3 -D BOOST_DISABLE_ASSERTS 
    1111%DEV_CFLAGS     -g 
    1212%DEBUG_CFLAGS   -g -O2 
    1313 
    14 %BASE_FFLAGS    -D__NONE__ 
     14%BASE_FFLAGS    -D__NONE__ -ffree-line-length-none 
    1515%PROD_FFLAGS    -O3 
    1616%DEV_FFLAGS     -g -O2 
     
    2020%BASE_LD        -lstdc++ 
    2121 
    22 %CPP            /opt/local/bin/cpp-mp-4.5 
    23 %FPP            /opt/local/bin/cpp-mp-4.5 -P 
    24 %MAKE           gmake 
     22%CPP            cpp 
     23%FPP            cpp -P 
     24%MAKE           make 
    2525 
  • XIOS3/trunk/extern/remap/src/meshutil.cpp

    r2269 r2471  
    55#include "earcut.hpp" 
    66#include <vector> 
     7#include <array> 
    78 
    89namespace sphereRemap { 
  • XIOS3/trunk/src/attribute_map.cpp

    r2388 r2471  
    402402           { 
    403403             oss << ", " << it->second->getName() << "_"; 
    404              if (oss.tellp() - startPos > 90) 
     404             if ((long)oss.tellp() - startPos > 90) 
    405405             { 
    406406               oss << "  &" << iendl; 
     
    452452           { 
    453453             oss << ", " << it->second->getName() << "_"; 
    454              if (oss.tellp() - startPos > 90) 
     454             if ((long)oss.tellp() - startPos > 90) 
    455455             { 
    456456               oss << "  &" << iendl; 
     
    502502           { 
    503503             oss << ", " << it->second->getName() << "_"; 
    504              if (oss.tellp() - startPos > 90) 
     504             if ((long)oss.tellp() - startPos > 90) 
    505505             { 
    506506               oss << "  &" << iendl; 
     
    552552           { 
    553553             oss << ", " << it->second->getName(); 
    554              if (oss.tellp() - startPos > 90) 
     554             if ((long)oss.tellp() - startPos > 90) 
    555555             { 
    556556               oss << "  &" << iendl; 
     
    587587           { 
    588588             oss << ", " << it->second->getName(); 
    589              if (oss.tellp() - startPos > 90) 
     589             if ((long)oss.tellp() - startPos > 90) 
    590590             { 
    591591               oss << "  &" << iendl; 
     
    614614           { 
    615615             oss << ", " << it->second->getName(); 
    616              if (oss.tellp() - startPos > 90) 
     616             if ((long)oss.tellp() - startPos > 90) 
    617617             { 
    618618               oss << "  &" << iendl; 
     
    649649           { 
    650650             oss << ", " << it->second->getName(); 
    651              if (oss.tellp() - startPos > 90) 
     651             if ((long)oss.tellp() - startPos > 90) 
    652652             { 
    653653               oss << "  &" << iendl; 
     
    676676           { 
    677677             oss << ", " << it->second->getName(); 
    678              if (oss.tellp() - startPos > 90) 
     678             if ((long)oss.tellp() - startPos > 90) 
    679679             { 
    680680               oss << "  &" << iendl; 
     
    711711           { 
    712712             oss << ", " << it->second->getName(); 
    713              if (oss.tellp() - startPos > 90) 
     713             if ((long)oss.tellp() - startPos > 90) 
    714714             { 
    715715               oss << "  &" << iendl; 
     
    738738           { 
    739739             oss << ", " << it->second->getName(); 
    740              if (oss.tellp() - startPos > 90) 
     740             if ((long)oss.tellp() - startPos > 90) 
    741741             { 
    742742               oss << "  &" << iendl; 
     
    776776           { 
    777777             oss << ", " << it->second->getName(); 
    778              if (oss.tellp() - startPos > 90) 
     778             if ((long)oss.tellp() - startPos > 90) 
    779779             { 
    780780               oss << "  &" << iendl; 
     
    803803           { 
    804804             oss << ", " << it->second->getName(); 
    805              if (oss.tellp() - startPos > 90) 
     805             if ((long)oss.tellp() - startPos > 90) 
    806806             { 
    807807               oss << "  &" << iendl; 
     
    841841           { 
    842842             oss << ", " << it->second->getName(); 
    843              if (oss.tellp() - startPos > 90) 
     843             if ((long)oss.tellp() - startPos > 90) 
    844844             { 
    845845               oss << "  &" << iendl; 
     
    868868           { 
    869869             oss << ", " << it->second->getName(); 
    870              if (oss.tellp() - startPos > 90) 
     870             if ((long)oss.tellp() - startPos > 90) 
    871871             { 
    872872               oss << "  &" << iendl; 
     
    906906           { 
    907907             oss << ", " << it->second->getName(); 
    908              if (oss.tellp() - startPos > 90) 
     908             if ((long)oss.tellp() - startPos > 90) 
    909909             { 
    910910               oss << "  &" << iendl; 
  • XIOS3/trunk/src/interface/c/icdata.cpp

    r2426 r2471  
    6666      if (!cstr2string(client_id, len_client_id, str)) return; 
    6767 
    68       CTimer::get("XIOS").resume(); 
    69       CTimer::get("XIOS init").resume(); 
    7068      int initialized; 
    7169      MPI_Initialized(&initialized); 
    72       if (initialized) local_comm=MPI_Comm_f2c(*f_local_comm); 
     70      if (initialized) 
     71      { 
     72        CTimer::get("XIOS").resume(); 
     73        CTimer::get("XIOS init").resume(); 
     74        local_comm=MPI_Comm_f2c(*f_local_comm); 
     75      } 
    7376      else local_comm=MPI_COMM_NULL; 
    7477      CXios::initClientSide(str, local_comm, return_comm); 
    7578      *f_return_comm=MPI_Comm_c2f(return_comm); 
    76       CTimer::get("XIOS init").suspend(); 
    77       CTimer::get("XIOS").suspend(); 
     79      if (initialized) 
     80      { 
     81        CTimer::get("XIOS init").suspend(); 
     82        CTimer::get("XIOS").suspend(); 
     83      } 
    7884   } 
    7985   CATCH_DUMP_STACK 
  • XIOS3/trunk/src/log_type.hpp

    r2341 r2471  
    66#include <cstdint> 
    77#include <unordered_map> 
     8#include <map> 
    89 
    910//#include "cxios.hpp" 
Note: See TracChangeset for help on using the changeset viewer.