getfem-commits
[Top][All Lists]
Advanced

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

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


From: Yves . Renard
Subject: [Getfem-commits] r5461 - /trunk/getfem/src/getfem_generic_assembly.cc
Date: Fri, 04 Nov 2016 14:39:35 -0000

Author: renard
Date: Fri Nov  4 15:39:34 2016
New Revision: 5461

URL: http://svn.gna.org/viewcvs/getfem?rev=5461&view=rev
Log:
small fix

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=5461&r1=5460&r2=5461&view=diff
==============================================================================
--- trunk/getfem/src/getfem_generic_assembly.cc (original)
+++ trunk/getfem/src/getfem_generic_assembly.cc Fri Nov  4 15:39:34 2016
@@ -2802,12 +2802,14 @@
     const size_type &ipt;
     size_type qmult1, qmult2;
     virtual int exec() {
-      if (ipt == 0) {
+      cout << "Slice " << ipt << " cvnum = " << ctx.convex_num() << endl;
+      if (ipt == 0 || true) {
        GA_DEBUG_INFO("Instruction: Slice local dofs");
        GMM_ASSERT1(qmult1 != 0 && qmult2 != 0, "Internal error");
        slice_vector_on_basic_dof_of_element(mf, U, ctx.convex_num(),
                                             coeff, qmult1, qmult2);
       }
+      cout << "Coeff " << coeff << endl;
       return 0;
     }
     ga_instruction_slice_local_dofs(const mesh_fem &mf_, const base_vector &U_,
@@ -2854,7 +2856,7 @@
     const size_type &ipt;
     
     virtual int exec() {
-      if (ipt == 0) {
+      if (ipt == 0 || true) {
        GA_DEBUG_INFO("Instruction: adapt first index of tensor");
        const mesh_fem &mf = *(mfg ? *mfg : mfn);
        GA_DEBUG_ASSERT(&mf, "Internal error");
@@ -2882,7 +2884,7 @@
     : public ga_instruction_first_ind_tensor {
 
     virtual int exec() {
-      if (ipt == 0) {
+      if (ipt == 0 || true) {
        GA_DEBUG_INFO("Instruction: adapt second index of tensor");
        const mesh_fem &mf = *(mfg ? *mfg : mfn);
        size_type cv_1 = ctx.is_convex_num_valid()
@@ -2916,7 +2918,7 @@
     const size_type &ipt;
     
     virtual int exec() {
-      if (ipt == 0) {
+      if (ipt == 0 || true) {
        GA_DEBUG_INFO("Instruction: adapt two first indices of tensor");
        const mesh_fem &mf1 = *(mfg1 ? *mfg1 : mfn1);
        const mesh_fem &mf2 = *(mfg2 ? *mfg2 : mfn2);
@@ -12345,7 +12347,7 @@
               first_ind = pai->ind_first_point_on_face(v.f());
             }
             for (gis.ipt = 0; gis.ipt < gis.nbpt; ++(gis.ipt)) {
-              if (pgp) gis.ctx.set_ii(first_ind+gis.ipt);
+             if (pgp) gis.ctx.set_ii(first_ind+gis.ipt);
               else gis.ctx.set_xref((*pspt)[first_ind+gis.ipt]);
               if (gis.ipt == 0 || !(pgt->is_linear())) {
                 J = gis.ctx.J();




reply via email to

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