[MOAB-dev] r5632 - MOAB/trunk/tools/dagmc

sjackson at mcs.anl.gov sjackson at mcs.anl.gov
Fri Jul 13 17:19:32 CDT 2012


Author: sjackson
Date: 2012-07-13 17:19:31 -0500 (Fri, 13 Jul 2012)
New Revision: 5632

Modified:
   MOAB/trunk/tools/dagmc/DagMC.cpp
   MOAB/trunk/tools/dagmc/DagMC.hpp
Log:
Remove the deprecated DagMC::write_mcnp() function

Update DagMC interface version number

Modified: MOAB/trunk/tools/dagmc/DagMC.cpp
===================================================================
--- MOAB/trunk/tools/dagmc/DagMC.cpp	2012-07-12 20:17:42 UTC (rev 5631)
+++ MOAB/trunk/tools/dagmc/DagMC.cpp	2012-07-13 22:19:31 UTC (rev 5632)
@@ -2136,195 +2136,6 @@
   return volume == impl_compl_handle;
 }
 
-
-ErrorCode DagMC::write_mcnp(std::string ifile, const bool overwrite) 
-{
-  std::map<std::string,int> tallyKeywords;
-  
-  tallyKeywords["surf.current"] = 1;
-  tallyKeywords["surf.flux"]    = 2;
-  tallyKeywords["cell.flux"]    = 4;
-  tallyKeywords["cell.heating"] = 6;
-  tallyKeywords["cell.fission"] = 7;
-  tallyKeywords["pulse.height"] = 8;
-
-  std::vector<EntityHandle>::iterator iter;
-
-  if (!overwrite) {
-      // if not overwriting, test for file, and if it exists, just return;
-      // this replaces the old inquir function
-    std::ifstream testfile;
-    testfile.open(ifile.c_str());
-
-    if (!testfile.fail()) return MB_SUCCESS;
-  }
-  
-  const char *cifile = ifile.c_str();
-  std::ofstream cgmfile;
-  cgmfile.open(cifile);
-
-  std::cout << "  # cells: " << vol_handles().size()-1 << std::endl;
-  std::cout << "  # surfs: " << surf_handles().size()-1 << std::endl;
-  std::cout << " # groups: " << group_handles().size()-1 << std::endl;
-  std::cout << "# tallies: " << tallyList.size() << std::endl;
-
-  Range grp_sets;
-  ErrorCode rval;
-
-  Range surfs, vols;
-
-
-  // write cell information (skip first entry)             
-  for (iter = vol_handles().begin()+1; iter != vol_handles().end(); iter++) {
-    
-    int cellid,matid;
-    double imp, density;


More information about the moab-dev mailing list