- Timestamp:
- Jul 24, 2014 10:10:18 AM (11 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 099e053
- Parents:
- 473183c
- Location:
- Models
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Models/code_capcyl.py
r473183c rca6c007 7 7 8 8 from weights import GaussianDispersion 9 from Models.sasmodel import card9 from sasmodel import card 10 10 11 11 … … 34 34 #create context, queue, and build program 35 35 ctx,_queue = card() 36 trala = open(' NR_BessJ1.cpp').read()+"\n"+open('Capcyl_Kfun.cpp').read()+"\n"+open('Kernel-CapCyl.cpp').read()36 trala = open('Kernel/NR_BessJ1.cpp').read()+"\n"+open('Kernel/Capcyl_Kfun.cpp').read()+"\n"+open('Kernel/Kernel-CapCyl.cpp').read() 37 37 src, qx, qy = set_precision(trala, qx, qy, dtype=dtype) 38 38 self.prg = cl.Program(ctx, src).build() -
Models/code_coreshellcyl.py
r473183c rca6c007 6 6 7 7 from weights import GaussianDispersion 8 from Models.sasmodel import card8 from sasmodel import card 9 9 10 10 … … 31 31 #create context, queue, and build program 32 32 ctx,_queue = card() 33 src, qx, qy = set_precision(open(' NR_BessJ1.cpp').read()+"\n"+open('Kernel-CoreShellCylinder.cpp').read(), qx, qy, dtype=dtype)33 src, qx, qy = set_precision(open('Kernel/NR_BessJ1.cpp').read()+"\n"+open('Kernel/Kernel-CoreShellCylinder.cpp').read(), qx, qy, dtype=dtype) 34 34 self.prg = cl.Program(ctx, src).build() 35 35 self.qx, self.qy = qx, qy -
Models/code_cylinder.py
r473183c rca6c007 6 6 7 7 from weights import GaussianDispersion 8 from Models.sasmodel import card8 from sasmodel import card 9 9 10 10 … … 47 47 #create context, queue, and build program 48 48 ctx,_queue = card() 49 src, qx, qy = set_precision(open(' NR_BessJ1.cpp').read()+"\n"+open('Kernel-Cylinder.cpp').read(), qx, qy, dtype=dtype)49 src, qx, qy = set_precision(open('Kernel/NR_BessJ1.cpp').read()+"\n"+open('Kernel/Kernel-Cylinder.cpp').read(), qx, qy, dtype=dtype) 50 50 self.prg = cl.Program(ctx, src).build() 51 51 self.qx, self.qy = qx, qy … … 111 111 #create context, queue, and build program 112 112 ctx,_queue = card() 113 trala = open(' NR_BessJ1.cpp').read()+"\n"+open('OneDCyl_Kfun.cpp').read()+"\n"+open('Kernel-OneDCylinder.cpp').read()113 trala = open('Kernel/NR_BessJ1.cpp').read()+"\n"+open('Kernel/OneDCyl_Kfun.cpp').read()+"\n"+open('Kernel/Kernel-OneDCylinder.cpp').read() 114 114 src, self.q = set_precision_1d(trala, q, dtype=dtype) 115 115 self.prg = cl.Program(ctx, src).build() -
Models/code_ellipse.py
r473183c rca6c007 6 6 7 7 from weights import GaussianDispersion 8 from Models.sasmodel import card8 from sasmodel import card 9 9 10 10 … … 32 32 33 33 ctx,_queue = card() 34 src, qx, qy = set_precision(open('Kernel -Ellipse.cpp').read(), qx, qy, dtype=dtype)34 src, qx, qy = set_precision(open('Kernel/Kernel-Ellipse.cpp').read(), qx, qy, dtype=dtype) 35 35 self.prg = cl.Program(ctx, src).build() 36 36 self.qx, self.qy = qx, qy -
Models/code_lamellar.py
r473183c rca6c007 4 4 import numpy as np 5 5 import pyopencl as cl 6 from weights import GaussianDispersion6 from Models.weights import GaussianDispersion 7 7 8 8 def set_precision(src, qx, qy, dtype): … … 31 31 self.ctx = cl.create_some_context() 32 32 self.queue = cl.CommandQueue(self.ctx) 33 src,qx,qy = set_precision(open('Kernel -Lamellar.cpp').read(), qx, qy, dtype=dtype)33 src,qx,qy = set_precision(open('Kernel/Kernel-Lamellar.cpp').read(), qx, qy, dtype=dtype) 34 34 self.prg = cl.Program(self.ctx, src).build() 35 35 self.qx, self.qy = qx, qy -
Models/code_triaxialellipse.py
r473183c rca6c007 6 6 7 7 from weights import GaussianDispersion 8 from Models.sasmodel import card8 from sasmodel import card 9 9 10 10 … … 31 31 def __init__(self, qx, qy, dtype='float32'): 32 32 ctx,_queue = card() 33 src, qx, qy = set_precision(open('Kernel -TriaxialEllipse.cpp').read(), qx, qy, dtype=dtype)33 src, qx, qy = set_precision(open('Kernel/Kernel-TriaxialEllipse.cpp').read(), qx, qy, dtype=dtype) 34 34 self.prg = cl.Program(ctx, src).build() 35 35 self.qx, self.qy = qx, qy
Note: See TracChangeset
for help on using the changeset viewer.