getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] r5095 - /trunk/getfem/src/getfem_generic_assembly.cc


From: andriy . andreykiv
Subject: [Getfem-commits] r5095 - /trunk/getfem/src/getfem_generic_assembly.cc
Date: Thu, 08 Oct 2015 16:17:13 -0000

Author: andrico
Date: Thu Oct  8 18:17:11 2015
New Revision: 5095

URL: http://svn.gna.org/viewcvs/getfem?rev=5095&view=rev
Log:
removed another std::make_unique

Modified:
    trunk/getfem/src/getfem_generic_assembly.cc

Modified: trunk/getfem/src/getfem_generic_assembly.cc
URL: 
http://svn.gna.org/viewcvs/getfem/trunk/getfem/src/getfem_generic_assembly.cc?rev=5095&r1=5094&r2=5095&view=diff
==============================================================================
--- trunk/getfem/src/getfem_generic_assembly.cc (original)
+++ trunk/getfem/src/getfem_generic_assembly.cc Thu Oct  8 18:17:11 2015
@@ -1976,6 +1976,8 @@
                            const std::string &varname,
                            const std::string &interpolatename);
 
+  using instruction_set = omp_distribute<ga_instruction_set>;
+
   class ga_predef_function {
     size_type ftype_; // 0 : C++ function with C++ derivative(s)
                      // 1 : function defined by an string expression.
@@ -1991,7 +1993,7 @@
     std::string derivative1_, derivative2_;
     mutable omp_distribute<base_vector> t, u;
     mutable omp_distribute<ga_workspace> workspace;
-    copyable_ptr<omp_distribute<ga_instruction_set>> gis;
+    copyable_ptr<instruction_set> gis;
 
     friend void ga_define_function(const std::string name, size_type nbargs,
                                    const std::string expr, const std::string 
der1,
@@ -2496,7 +2498,7 @@
     ga_predef_function &F = PREDEF_FUNCTIONS[name];
     GMM_ASSERT1(!me_is_multithreaded_now(),
                 "functions should not be defined in multi-threaded code");
-    F.gis = std::make_unique<omp_distribute<ga_instruction_set>>();
+    F.gis = std::unique_ptr<instruction_set>(new instruction_set());
     for (size_type thread = 0; thread < num_threads(); ++thread)
     {
       F.workspace(thread).add_fixed_size_variable("t", gmm::sub_interval(0,1), 
F.t);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]