diff --git a/modules/mol/alg/src/ldt.cc b/modules/mol/alg/src/ldt.cc index 822b4389805b9d27a4b204eeb3222d95f78e0a9c..5dbab61cfceb3d77794dbf465447980cdfa32e54 100644 --- a/modules/mol/alg/src/ldt.cc +++ b/modules/mol/alg/src/ldt.cc @@ -234,7 +234,13 @@ int main (int argc, char **argv) EntityView model2=model.Select("aname!=CEN,NV,OT1,OT,CAY,CY,OXT,1OCT,NT,OT2,2OCT,OVL1,OC1,O1,OC2,O2,OVU1"); EntityView v1=model2.Select("not (rname==GLY and aname==CB)"); boost::filesystem::path pathstring(files[i]); + + #if BOOST_FILESYSTEM_VERSION==3 String filestring=pathstring.filename().string(); + #else + String filestring=pathstring.file_string(); + #endif + if (filestring.substr(5,5)=="TS257" || filestring.substr(5,5)=="TS458" ) { for (AtomHandleIter ait=v1.GetHandle().AtomsBegin();ait!=v1.GetHandle().AtomsEnd();++ait){ AtomHandle aitv = *ait;