Ignore:
Timestamp:
Feb 14, 2017, 11:30:19 AM (8 years ago)
Author:
meunier
Message:
  • Intégration des modifications de Clément, qui a intégré la version parallélisée de systemcass faite par Manuel.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/sc_module.cc

    r59 r60  
    3838#include <vector>
    3939#include <set>
     40#ifdef _OPENMP
     41#include <omp.h>
     42#endif
    4043
    4144#include "sc_module.h"
     
    124127// ----------------------------------------------------------------------------
    125128method_process_t::method_process_t(const char * nm, SC_ENTRY_FUNC fn, sc_module & mod) {
    126   name = nm;
    127   func = fn;
    128   module = &mod;
    129   dont_initialize = false;
     129    name = nm;
     130    func = fn;
     131    module = &mod;
     132    dont_initialize = false;
     133#ifdef _OPENMP
     134    omp_threadnum = omp_get_thread_num();
     135#endif
    130136}
    131137
Note: See TracChangeset for help on using the changeset viewer.