CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Find indix of minimum vlue

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 27, 2015, 11:24
Default Find indix of minimum value
  #1
New Member
 
Join Date: Jul 2015
Posts: 9
Rep Power: 10
fst-student is on a distinguished road
Hello,

I want to determine the index of the minimum value in a scalarlist. For this I use the command
Code:
findMin(List)
, but this command is slow beacause it uses linear search. Is there a faster method for this? Maybe a command which uses binary search?

Thank you very much

Last edited by fst-student; September 28, 2015 at 03:58.
fst-student is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam171: error /usr/bin/ld: cannot find -llduSolvers Schipper OpenFOAM Programming & Development 9 August 26, 2020 05:31
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
minimum force to start a motion doctsh Main CFD Forum 6 December 29, 2011 05:25
How to calculate minimum force required to start motion? doctsh FLOW-3D 0 December 27, 2011 07:20
Problem Building OF on Centos cluster (no admin rights) CKH OpenFOAM Installation 5 November 13, 2011 06:32


All times are GMT -4. The time now is 12:54.