From 274c3d2bd6f670431db3bd5e1dd6863d260554d4 Mon Sep 17 00:00:00 2001 From: dmayerich Date: Mon, 30 Dec 2013 00:12:46 -0600 Subject: [PATCH] fixed visual studio warnings --- CMakeLists.txt | 2 +- montecarlo.cpp | 4 ++-- nearfield.cpp | 6 +++--- options.h | 6 +++--- sphere.h | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7df99da..28fb22a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}") set(Boost_USE_STATIC_LIBS ON) set(Boost_USE_MULTITHREADED ON) set(Boost_USE_STATIC_RUNTIME OFF) -find_package( Boost 1.49.0 COMPONENTS program_options ) +find_package( Boost 1.46.0 COMPONENTS program_options ) #find the Qt4 find_package(Qt4 REQUIRED) diff --git a/montecarlo.cpp b/montecarlo.cpp index edb37dd..0690d20 100644 --- a/montecarlo.cpp +++ b/montecarlo.cpp @@ -45,8 +45,8 @@ void mcSampleNA(bsVector* samples, int N, bsVector k, ptype NAin, ptype NAout) ptype z, phi, theta; for(int i=0; i filenames = vm["sphere-file"].as< vector >(); //load each file - for(int iS=0; iS newM(SCOPE->nf.lambda, matVec[i], matVec[i+1]); SCOPE->nf.mVector.push_back(newM); @@ -350,7 +350,7 @@ static void lMaterials(po::variables_map vm) if(vm.count("material-file")) { vector filenames = vm["material-file"].as< vector >(); - for(int i=0; i