Changeset 260


Ignore:
Timestamp:
Jul 9, 2011, 10:10:25 PM (13 years ago)
Author:
sommeria
Message:

bug repaired for civ : case of relative civ function paths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r257 r260  
    15911591        if isfield(sparam,'CivBin')
    15921592            CivBin=sparam.CivBin;
    1593             if ~exist(CivBin,'file') || ~isempty(which(CivBin))% if path defined as relative to uvmat
     1593            if ~exist(CivBin,'file') || isempty(which(CivBin))% if path defined as relative to uvmat
    15941594                sparam.CivBin=fullfile(path_UVMAT,CivBin);
    15951595                if ~exist(sparam.CivBin,'file')
     
    16021602        if isfield(sparam,'Civ1Bin')
    16031603            Civ1Bin=sparam.Civ1Bin;
    1604             if ~exist(Civ1Bin,'file')||~isempty(which(Civ1Bin))% if path defined as relative to uvmat
     1604            if ~exist(Civ1Bin,'file')||isempty(which(Civ1Bin))% if path defined as relative to uvmat
    16051605                sparam.Civ1Bin=fullfile(path_UVMAT,Civ1Bin);
    16061606                if ~exist(sparam.Civ1Bin,'file')
     
    16121612        if isfield(sparam,'Civ2Bin')
    16131613            Civ2Bin=sparam.Civ2Bin;
    1614             if ~exist(Civ2Bin,'file')||~isempty(which(Civ2Bin))% if path defined as relative to uvmat
     1614            if ~exist(Civ2Bin,'file')||isempty(which(Civ2Bin))% if path defined as relative to uvmat
    16151615                sparam.Civ2Bin=fullfile(path_UVMAT,Civ2Bin);
    16161616                if ~exist(sparam.Civ2Bin,'file')
     
    16211621        end
    16221622        if  isfield(sparam,'PatchBin')
    1623             if ~exist(sparam.PatchBin,'file')||~isempty(which(sparam.PatchBin))% if path defined as relative to uvmat
     1623            if ~exist(sparam.PatchBin,'file')||isempty(which(sparam.PatchBin))% if path defined as relative to uvmat
    16241624                sparam.PatchBin=fullfile(path_UVMAT,sparam.PatchBin);
    16251625            end
    16261626        end
    16271627        if isfield(sparam,'FixBin')
    1628             if ~exist(sparam.FixBin,'file')||~isempty(which(sparam.FixBin))% if path defined as relative to uvmat
     1628            if ~exist(sparam.FixBin,'file')||isempty(which(sparam.FixBin))% if path defined as relative to uvmat
    16291629                sparam.FixBin=fullfile(path_UVMAT,sparam.FixBin);
    16301630            end
Note: See TracChangeset for help on using the changeset viewer.