https://stackoverflow.com/questions/24101718/swift-performance-sorting-
arrays#comment37183103_24102237
tl;dr Swift without aggressive compiler optimizations at this stage is very
slow; with them it is very fast. Keep it in mind.
Here is an in-place quicksort in Swift:
func quicksort_swift(inout a:CInt[], start:Int, end:Int) {
if (end - start < 2){
return
}
var p = a[start + (end - start)/2]
var l = start
var r = end - 1
while (l <= r){
if (a[l] < p){
... 阅读全帖
Recently have to use a Fortran code written by another folk. He
used command-line-arguments a lot. Like this
character*80 cint
...
getarg(1, cint)
read(cint, *) number
...
Are these "getarg" and "read(cint, *)" standard fortran syntax, or
just dialect used by some compilers?
【 以下文字转载自 Physics 讨论区 】
发信人: Yueqing (yueqing), 信区: Physics
标 题: Postdoc position available
发信站: BBS 未名空间站 (Tue Feb 15 20:50:48 2011, 美东)
We are filling a postdoc position available immediately in nonlinear metamaterials. It is a theoretical position needing expertise on Computational Electromagnetics using FEM, FDTD or other relevant methods. Simulation coding is essential for the position. The relevant previous experimental work could be found at http://cint/source/orgs/mpa/cint/houtong_chen.... 阅读全帖
We are filling a postdoc position available immediately in nonlinear metamaterials. It is a theoretical position needing expertise on Computational Electromagnetics using FEM, FDTD or other relevant methods. Simulation coding is essential for the position. The relevant previous experimental work could be found at http://cint/source/orgs/mpa/cint/houtong_chen.shtml. Interested applicants should send their CV immediately to c****[email protected].
metamaterials. It is a theoretical
position needing expertise on Computational Electromagnetics using FEM, FDTD
or other relevant methods.
Simulation coding is essential for the position. The relevant previous
experimental work could be found at http://cint/source/orgs/mpa/cint/houtong_chen.shtml. Interested applicants should send their CV
immediately to c****[email protected].
How Much?
metamaterials. It is a theoretical position needing expertise on
Computational Electromagnetics using FEM, FDTD or other relevant methods.
Simulation coding is essential for the position. The relevant previous
experimental work could be found at http://cint/source/orgs/mpa/cint/houtong_chen.shtml. Interested applicants should send their CV immediately to c****[email protected].
这里只是帮老板转发一下(个人觉得不管是实验条件还是待遇都很好)。有兴趣的可以
申请(这些职位在Sandia网站上能找到,有兴趣的也可以发信问我,我尽量回答):
2 Postdoc openings in Nanophotonics
We have two postdoc openings in experimental Nanophotonics. The postdocs
will work in the general areas of plasmonics/metamaterials combined with
semiconductors and/or optical nanomaterials.
The positions are at the “Center for Integrated Nanotechnologies”, a DOE
Nanoscience user facility run by Sandia. Postdocs will have free access to
state of the art facilities http://cint.san... 阅读全帖
const int nbins = 13;
double xbin[nbins+1];
for (int i=0;i
xbin[i]= 10.0*i;
here's the message, but the line number is incorrect; it's far from the line
where this array is located.
Limitation: Statement too long FILE:drawRatios4.C LINE:96
cint: Security mode 0x7:0x2 *** Fatal error in interpreter... restarting
interpreter ***
*** Fatal error in interpreter... restarting interpreter ***