QNANO
VFF.h
1 #ifndef QNANO_NEW_VFF_DEFINED_H
2 #define QNANO_NEW_VFF_DEFINED_H
3 
4 #include "structure/Sample.h"
5 #include "tools/Parameter_Map.h"
6 #include "VFF/VFF_Parameter_List.h"
7 #include "petsctao.h"
8 
9 class VFF{
10 public:
11  Sample sample;
12  VFF_Parameter_List vfflist;
13 
14 
16  void setup_from_resdir_and_posfile(const std::string &resources_dir, const std::string &positionfile, const std::string & neighborfile="");
17 
19  int get_DIM()const;
21  void set_initial_vec(Vec initialvec)const;
22  void set_atlist_from_vec(Vec vec);
23 
24 
25  //Constructor
26  VFF(const std::string &resources_dir, const std::string &positionfile, const std::string & neighborfile){
27  setup_from_resdir_and_posfile(resources_dir, positionfile, neighborfile);
28  }
29 
30 
34 static PetscErrorCode VVF_FunctionAndGradient(Tao tao, Vec pos, PetscReal *res, Vec grad, void* ctx);
35 
36 };
37 
38 #endif
int get_DIM() const
obtain total dimension
Definition: VFF.cc:9
Definition: VFF.h:9
void setup_from_resdir_and_posfile(const std::string &resources_dir, const std::string &positionfile, const std::string &neighborfile="")
setup
Definition: VFF.cc:4
static PetscErrorCode VVF_FunctionAndGradient(Tao tao, Vec pos, PetscReal *res, Vec grad, void *ctx)
Definition: VFF.cc:38
Definition: VFF_Parameter_List.h:8
Definition: Sample.h:9
void set_initial_vec(Vec initialvec) const
convert initial VFF data to Petsc Vec
Definition: VFF.cc:12