1 // Gmsh - Copyright (C) 1997-2021 C. Geuzaine, J.-F. Remacle 2 // 3 // See the LICENSE.txt file in the Gmsh root directory for license information. 4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues. 5 6 #ifndef DIVERGENCE_H 7 #define DIVERGENCE_H 8 9 #include "Plugin.h" 10 11 extern "C" { 12 GMSH_Plugin *GMSH_RegisterDivergencePlugin(); 13 } 14 15 class GMSH_DivergencePlugin : public GMSH_PostPlugin { 16 public: GMSH_DivergencePlugin()17 GMSH_DivergencePlugin() {} getName()18 std::string getName() const { return "Divergence"; } getShortHelp()19 std::string getShortHelp() const 20 { 21 return "Compute the divergence of a vector view"; 22 } 23 std::string getHelp() const; 24 int getNbOptions() const; 25 StringXNumber *getOption(int iopt); 26 PView *execute(PView *); 27 }; 28 29 #endif 30