/[escript]/branches/intelc_win32/bruce/src/Bruce.cpp
ViewVC logotype

Diff of /branches/intelc_win32/bruce/src/Bruce.cpp

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

revision 753 by woo409, Sat Jun 24 11:27:16 2006 UTC revision 754 by woo409, Mon Jun 26 08:00:38 2006 UTC
# Line 896  Bruce::saveVTK(const std::string& filena Line 896  Bruce::saveVTK(const std::string& filena
896    // extract Data objects and associated names from dictionary object    // extract Data objects and associated names from dictionary object
897    const int MAX_namelength=256;    const int MAX_namelength=256;
898    
 /* FIXME: win32 refactor - Not required any more  
   char names[num_data][MAX_namelength];  
   char* c_names[num_data];  
   
   escriptDataC data[num_data];  
   escriptDataC* ptr_data[num_data];  
   
   for (int i=0; i<num_data; i++) {  
     Data& d=boost::python::extract<Data&>(dataDict[keys[i]]);  
     if (dynamic_cast<const Bruce&>(d.getFunctionSpace().getDomain()) != *this) {  
       throw BruceException("Error: Bruce::saveVTK: Data must be defined on same Domain");  
     }  
     data[i]=d.getDataC();  
     ptr_data[i]=&(data[i]);  
     std::string n=boost::python::extract<std::string>(keys[i]);  
     c_names[i]=&(names[i][0]);  
     if (n.length()>MAX_namelength-1) {  
       strncpy(c_names[i],n.c_str(),MAX_namelength-1);  
       c_names[i][MAX_namelength-1]='\0';  
     } else {  
       strcpy(c_names[i],n.c_str());  
     }  
   }  
 */  
899    //    //
900    // open archive file    // open archive file
901    ofstream archiveFile;    ofstream archiveFile;

Legend:
Removed from v.753  
changed lines
  Added in v.754

  ViewVC Help
Powered by ViewVC 1.1.26