/[ff3d]/ff3d/language/Instruction.cpp
ViewVC logotype

Diff of /ff3d/language/Instruction.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by delpinux, Sun Sep 28 12:55:15 2003 UTC revision 1.5 by delpinux, Sat Oct 18 16:05:28 2003 UTC
# Line 111  void InstructionSaveMesh::execute() Line 111  void InstructionSaveMesh::execute()
111    case (FileDescriptor::medit): {    case (FileDescriptor::medit): {
112      //! plots the Mesh      //! plots the Mesh
113      std::string msh = (*__fileName).value();      std::string msh = (*__fileName).value();
114    
115      msh += ".mesh";      msh += ".mesh";
116        
117      std::ofstream fmsh(msh.c_str());      std::ofstream fmsh(msh.c_str());
118    
119      MeshWriter w(fmsh,(*__mesh).mesh(),CR);      MeshWriter w(fmsh,(*__mesh).mesh(),CR);
# Line 166  void InstructionSaveFunction::execute() Line 168  void InstructionSaveFunction::execute()
168    
169    switch((*__fileDescriptor).format()) {    switch((*__fileDescriptor).format()) {
170    case (FileDescriptor::dataExplorer): {    case (FileDescriptor::dataExplorer): {
171      std::ofstream fout((*__fileName).value().c_str());      std::ofstream fout((*__fileName).value());
172      if (fout.bad()) {      if (fout.bad()) {
173        fferr(2) << "Cannot open file " << (*__fileName).value() << '\n';        fferr(2) << "Cannot open file " << (*__fileName).value() << '\n';
174        std::exit(1);        std::exit(1);
# Line 217  void InstructionSaveFunction::execute() Line 219  void InstructionSaveFunction::execute()
219    Information::instance().unsetMesh();    Information::instance().unsetMesh();
220  }  }
221    
222    void
223    InstructionAffectation<FunctionExpressionFEM, FunctionVariable>::
224    execute()
225    {
226      (*__expression).execute();
227    
228      const ReferenceCounting<MeshExpression>& mesh
229        = static_cast<FunctionExpressionFEM&>(*(*__variable).expression()).mesh();
230    
231      ReferenceCounting<FunctionExpression> f
232        = new FunctionExpressionFEM(mesh, __expression);
233    
234      (*f).execute();
235    
236      (*__variable) = f;
237    }
238    
239    
240  InstructionSaveField::  InstructionSaveField::
241  InstructionSaveField(ReferenceCounting<FileDescriptor> descriptor,  InstructionSaveField(ReferenceCounting<FileDescriptor> descriptor,
242                       ReferenceCounting<StringExpression> fileName,                       ReferenceCounting<StringExpression> fileName,

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26