Changeset 3120


Ignore:
Timestamp:
02/24/10 13:21:10 (15 years ago)
Author:
Eric.Larour
Message:

Added different error margins capability for different partitions

Location:
issm/trunk/src/m/solutions/dakota/setupdesign
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/dakota/setupdesign/setupdrag.m

    r32 r3120  
    88end
    99
     10%capture stddev:
     11stddev=variables.stddev;
     12
     13if length(stddev)>md.npart,
     14        error('setupdrag error message: stddev should be either a scalar or a ''npart'' length vector');
     15end
     16
    1017%ok, dealing with semi-discrete distributed variable. Distribute according to how many
    1118%partitions we want
     
    1421        dvar(end+1)           =variables;
    1522        dvar(end  ).descriptor=sprintf('%s%d',variables.descriptor,j);
     23        if length(stddev)>1,
     24                dvar(end  ).stddev=stddev(j);
     25        end
    1626end
    1727
  • issm/trunk/src/m/solutions/dakota/setupdesign/setupthickness.m

    r32 r3120  
    77    end
    88end
     9%capture stddev:
     10stddev=variables.stddev;
     11
     12if length(stddev)>md.npart,
     13        error('setupthickness error message: stddev should be either a scalar or a ''npart'' length vector');
     14end
    915
    1016%ok, dealing with semi-discrete distributed variable. Distribute according to how many
     
    1420        dvar(end+1)           =variables;
    1521        dvar(end  ).descriptor=sprintf('%s%d',variables.descriptor,j);
     22        if length(stddev)>1,
     23                dvar(end  ).stddev=stddev(j);
     24        end
    1625end
    17 
     26       
    1827end
Note: See TracChangeset for help on using the changeset viewer.