Skip to content

Commit

Permalink
Merge pull request #100 from wenqing/misc
Browse files Browse the repository at this point in the history
 Re-organized some includes and  removed pieces of unused code
  • Loading branch information
wenqing authored Jun 14, 2018
2 parents b8f3286 + 211ee22 commit 7cdc408
Show file tree
Hide file tree
Showing 11 changed files with 72 additions and 2,654 deletions.
4 changes: 4 additions & 0 deletions FEM/fem_ele.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#include "femlib.h"
#include "mathlib.h"

#ifndef USE_PETSC
#include "par_ddc.h"
#endif

#include "ShapeFunctionPool.h"

namespace FiniteElement
Expand Down
11 changes: 3 additions & 8 deletions FEM/fem_ele.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,10 @@

#define fem_INC

// C++
//#include <vector>
//#include <string>

#if defined(USE_PETSC) // || defined(other parallel libs)//03.3012. WW
#include "prototyp.h"
#else
// MSH
#include "par_ddc.h" //OK //Moved from fem_ele_std.h. WW

#ifndef USE_PETSC
class CPARDomain;
#endif

#include "MSHEnums.h"
Expand Down
4 changes: 4 additions & 0 deletions FEM/fem_ele_std.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
using Math_Group::CSparseMatrix;
#endif

#ifndef USE_PETSC
#include "par_ddc.h"
#endif

#ifdef OGS_USE_CVODE
extern "C" {
#include <cvode/cvode.h> /* prototypes for CVODE fcts., consts. */
Expand Down
5 changes: 5 additions & 0 deletions FEM/fem_ele_vec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
#include "equation_class.h"
using Math_Group::CSparseMatrix;
#endif

#ifndef USE_PETSC
#include "par_ddc.h"
#endif

//
#define COMP_MOL_MASS_AIR 28.96 // kg/kmol WW 28.96
#define GAS_CONSTANT 8314.41 // J/(kmol*K) WW
Expand Down
Loading

0 comments on commit 7cdc408

Please sign in to comment.