~ubuntu-branches/debian/squeeze/gmsh/squeeze

« back to all changes in this revision

Viewing changes to Common/Gmsh.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme
  • Date: 2009-09-02 18:12:15 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090902181215-yla8zvcas2ucvkm9
[Christophe Prud'homme]
* New upstream release
  + fixed surface mesh orientation bug introduced in 2.4.0;
  + mesh and graphics code refactoring;
  + small usability enhancements and bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
int GmshSetOption(std::string category, std::string name, std::string value, int index)
65
65
{
66
 
  if(StringOption(GMSH_SET, category.c_str(), index, name.c_str(), value))
67
 
    return 1;
68
 
  return 0;
 
66
  return StringOption(GMSH_SET, category.c_str(), index, name.c_str(), value);
69
67
}
70
68
 
71
69
int GmshSetOption(std::string category, std::string name, double value, int index)
72
70
{
73
 
  if(NumberOption(GMSH_SET, category.c_str(), index, name.c_str(), value))
74
 
    return 1;
75
 
  return 0;
 
71
  return NumberOption(GMSH_SET, category.c_str(), index, name.c_str(), value);
 
72
}
 
73
 
 
74
int GmshSetOption(std::string category, std::string name, unsigned int value, int index)
 
75
{
 
76
  return ColorOption(GMSH_SET, category.c_str(), index, name.c_str(), value);
 
77
}
 
78
 
 
79
int GmshGetOption(std::string category, std::string name, std::string &value, int index)
 
80
{
 
81
  return StringOption(GMSH_GET, category.c_str(), index, name.c_str(), value);
 
82
}
 
83
 
 
84
int GmshGetOption(std::string category, std::string name, double &value, int index)
 
85
{
 
86
  return NumberOption(GMSH_GET, category.c_str(), index, name.c_str(), value);
 
87
}
 
88
 
 
89
int GmshGetOption(std::string category, std::string name, unsigned int &value, int index)
 
90
{
 
91
  return ColorOption(GMSH_GET, category.c_str(), index, name.c_str(), value);
76
92
}
77
93
 
78
94
int GmshMergeFile(std::string fileName)
87
103
 
88
104
int GmshBatch()
89
105
{
90
 
  Msg::Info("Running '%s'", Msg::GetCommandLine().c_str());
 
106
  Msg::Info("Running '%s'", Msg::GetCommandLineArgs().c_str());
91
107
  Msg::Info("Started on %s", Msg::GetLaunchDate().c_str());
92
108
 
93
109
  OpenProject(GModel::current()->getFileName());